I forked a project on github, made some changes, so far so good.
In the meantime, the repository I forked from changed and I would like to get those changes into my repository. How do I do that ?
I forked a project on github, made some changes, so far so good.
In the meantime, the repository I forked from changed and I would like to get those changes into my repository. How do I do that ?
You have to add the original repo as an upstream.
It is all well described here: https://help.github.com/articles/fork-a-repo
Generally
git pull
is enough, but I'm not sure what layout you have chosen (or has github chosen for you).Assuming their updates are on master, and you are on the branch you want to merge the changes into.
Also note that you will then want to push the merge back to your copy of the repository:
You need to add the original repository (the one that you forked) as a remote.
Then you need to bring in the changes to your local repository
Now you will have all the branches of the original repository in your local one. For example, the master branch will be
github/master
. With these branches you can do what you will. Merge them into your branches etcFor Linux: