[docs] update forking instructions (#1080)

This commit is contained in:
tobi 2022-11-20 15:50:11 +01:00 committed by GitHub
parent be3d999c21
commit 0490440fe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,16 +100,16 @@ See [this blog post](https://blog.sgmansfield.com/2016/06/working-with-forks-in-
In case this post disappears, here are the steps (slightly modified): In case this post disappears, here are the steps (slightly modified):
>
> Pull the original package from the canonical place with the standard go get command:
>
> `go get github.com/superseriousbusiness/gotosocial`
> >
> Fork the repository on GitHub or set up whatever other remote git repo you will be using. In this case, I would go to GitHub and fork the repository. > Fork the repository on GitHub or set up whatever other remote git repo you will be using. In this case, I would go to GitHub and fork the repository.
> >
> Navigate to the top level of the repository on your computer. Note that this might not be the specific package youre using: > Now clone the upstream repo (not the fork):
> >
> `cd $GOPATH/src/github.com/superseriousbusiness/gotosocial` > `mkdir -p ~/go/src/github.com/superseriousbusiness && git clone git@github.com:superseriousbusiness/gotosocial ~/go/src/github.com/superseriousbusiness/gotosocial`
>
> Navigate to the top level of the upstream repository on your computer:
>
> `cd ~/go/src/github.com/superseriousbusiness/gotosocial`
> >
> Rename the current origin remote to upstream: > Rename the current origin remote to upstream:
> >