Created
December 22, 2013 22:08
-
-
Save birchestx/8089049 to your computer and use it in GitHub Desktop.
Syncing a fork From https://help.github.com/articles/syncing-a-fork
This file contains 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 remote -v | |
# List the current remotes | |
# origin https://github.com/user/repo.git (fetch) | |
# origin https://github.com/user/repo.git (push) | |
git remote add upstream https://github.com/otheruser/repo.git | |
# Set a new remote | |
git remote -v | |
# Verify new remote | |
# origin https://github.com/user/repo.git (fetch) | |
# origin https://github.com/user/repo.git (push) | |
# upstream https://github.com/otheruser/repo.git (fetch) | |
# upstream https://github.com/otheruser/repo.git (push) | |
git fetch upstream | |
git checkout master | |
git merge upstream/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment