DEV Community

Discussion on: Working with forks in Go

canercidam profile image
Caner Çıdam

Nice approach! This also works fine for me if the package is not something to be imported by another package (i.e. a final product):

$ cd $GOPATH/src/
$ git clone && cd repo
$ git remote add upstream
$ cd .. && cd .. && mkdir original
$ mv username/repo original/repo