3

I forked a github repo. Now I want to update my fork to the current repo version. How can I do that?

1 Answer 1

5

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.