How to update a fork on github

I unlocked the repo on github and changed a couple of things. The original repo dedicated a couple of things. How can I update my fork without re-porting and wiping out all my changes?

+3


source to share


1 answer


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

git fetch upstream
git checkout master
git merge upstream/master

      



(see github Sync fork docs for more info)

+8


source







All Articles