Skip to content

Instantly share code, notes, and snippets.

@udhos
Last active October 19, 2018 22:16
Show Gist options
  • Save udhos/bee26e2f8a13b02a46c3b3fffaf53036 to your computer and use it in GitHub Desktop.
Save udhos/bee26e2f8a13b02a46c3b3fffaf53036 to your computer and use it in GitHub Desktop.
github-and-go-forking-pull-requests-and.html
Question: how do you handle pull requests from different GitHub repositories?
Source: github-and-go-forking-pull-requests-and.html
1. Fork the repository github.com/orig/cooltool to github.com/fork/cooltool
2. Get the original repository: go get github.com/orig/cooltool
3. Add a remote to your forked repository: git remote add fork https://github.com/fork/cooltool.git
4. Edit and commit on the local repository: github.com/orig/cooltool
5. Whenever you have a commit to push, send them to your remote: git push fork
Then your forked repository will always remain ready to merge toward the upstream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment