Created
August 9, 2013 10:22
-
-
Save wteuber/6192652 to your computer and use it in GitHub Desktop.
synch your fork of a repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git checkout master | |
| git reset --hard origin/master | |
| git remote -v | |
| #should list origin (fork) and upstream (original repo) | |
| #git remote add upstream https://github.com/original/repo.git | |
| git fetch upstream | |
| git merge upstream/master | |
| git push origin master | |
| #also see https://help.github.com/articles/syncing-a-fork |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment