Skip to content

Instantly share code, notes, and snippets.

@warengonzaga
Last active December 4, 2017 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warengonzaga/66547bb062bbd26de30a99e6baed9a7a to your computer and use it in GitHub Desktop.
Save warengonzaga/66547bb062bbd26de30a99e6baed9a7a to your computer and use it in GitHub Desktop.
How to keep your forked repository up to date?

Keep Your Forked Repository Up to Date!

Useful Git Commands

  • Add the remote from your original repository in your forked repository:

git remote add upstream git://github.com/original-developer/original-repository.git
git fetch upstream

  • Update your forked repository by typing the git command below:

git pull upstream master

That's it! Don't forget to star this gist if you find it useful!

Like my Facebook Page
Follow me on Twitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment