Reputation: 5897
I forked a github repo. Now I want to update my fork to the current repo version. How can I do that?
Upvotes: 3
Views: 213
Reputation: 667
I had the same doubt and found the answer in the github help.
git remote add upstream git://url-to-original
git fetch upstream
git merge upstream/master
git push
upstream is the name I gave to the original repository.
Hope it helps.
Upvotes: 5