6

I forked a repo on github and changed a couple of things. The original repo has committed a couple of things. How can I update my fork without re-forking and undoing all my changes?

0

1 Answer 1

16

From your terminal in your local project folder...(and provided you have configured the remote for your fork)

git fetch upstream
git checkout master
git merge upstream/master

(See the github Syncing a fork docs for more info)

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