How to sync with a remote Git repository?
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 ?
Solution 1:
Generally git pull
is enough, but I'm not sure what layout you have chosen (or has github chosen for you).
Solution 2:
Assuming their updates are on master, and you are on the branch you want to merge the changes into.
git remote add origin https://github.com/<github-username>/<repo-name>.git
git pull origin master
Also note that you will then want to push the merge back to your copy of the repository:
git push origin master