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?

Atrotors
  • 735
  • 1
  • 6
  • 25

1 Answers1

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)

sfletche
  • 42,426
  • 25
  • 94
  • 115