Skip to content

Instantly share code, notes, and snippets.

@komuw
Last active October 18, 2018 11:20
Show Gist options
  • Save komuw/985e56717f01ad2efcb539b5ff8d397e to your computer and use it in GitHub Desktop.
Save komuw/985e56717f01ad2efcb539b5ff8d397e to your computer and use it in GitHub Desktop.
create PR to a golang project

git clone [email protected]:golang/go.git
cd src
./make.bash # just builds
./all.bash # build and run tests
export PATH="$(pwd)"/../bin:"$PATH"

PR to a #golang project on @GitHub in 5 steps:

  1. go get github.com/big-org/project
  2. fork http://github.com/big-org/project ➡️ http://github.com/my-id/project
  3. cd $GOPATH/src/github.com/big-org/project && git remote add fork [email protected]:my-id/project.git ...
  4. git push fork origin
  5. git pull fork
  6. PR!

credit: https://twitter.com/francesc/status/1009487969198075905

NB: a. in step 1, it is a go get not a git clone b. in step 1 you may need to, go get -v -u github.com/big-org/project/...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment