Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I merge a parent fork?

Tags:

git

github

I forked a project on github, since then the original owner made changes to it. How do I pull down those changes and merge them into my fork?

Thanks!

like image 264
fancy Avatar asked Jan 18 '12 00:01

fancy


1 Answers

First set up a remote for the upstream repository, if you haven't already:

git remote add upstream git://github.com/...

Then fetch the remote contents and merge from it (assuming you're on the corresponding master branch of your fork):

git fetch
git merge upstream/master
like image 104
Will Vousden Avatar answered Oct 04 '22 00:10

Will Vousden