Skip to content

Instantly share code, notes, and snippets.

@zahna
Last active October 31, 2017 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zahna/9712d69257ef388bee28f45319c1a44e to your computer and use it in GitHub Desktop.
Save zahna/9712d69257ef388bee28f45319c1a44e to your computer and use it in GitHub Desktop.
creating a git branch to github upstream project
https://help.github.com/articles/syncing-a-fork/
http://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
git checkout master
git rebase upstream/master -or- git merge upstream/master
<resolve conflicts>
git add <files>
git rebase --continue
git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment