Created
April 11, 2012 19:10
-
-
Save simonmd/2361505 to your computer and use it in GitHub Desktop.
Pulling changes into a Github fork from the original repository
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
Pulling changes into a Github fork from the original repository | |
If you maintain your own ongoing fork of a project on Github, you will inevitably want to pull in changes from the originator’s repository. Here’s how I usually go about it. | |
First add the other guy’s repository to your list of remotes: | |
cd my-fork | |
git remote add other-guy https://github.com/other-guy/other-guys-repo.git | |
If you were to then list your remotes, you would have something like: | |
origin | |
other-guy | |
Now it’s just a case of pulling from the relevant branch on their repo, in this case ‘master’: | |
git pull other-guy master | |
Hope that saves someone some time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment