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
  • 765
  • 2
  • 7
  • 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
  • 47,248
  • 30
  • 103
  • 119