silviomoreto
silviomoreto

Reputation: 5897

How do I update a github fork from the original repo?

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

Answers (1)

anacarolinats
anacarolinats

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

Related Questions