Skip to content

Instantly share code, notes, and snippets.

Created November 11, 2019 14:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
How to update a fork
# Clone your fork
$ git clone
# Create a remote upstream with the original repository
$ cd your-repository-name
$ git remote add upstream git://
# Update your repository
$ cd your-repository-name
$ git fetch upstream
$ git pull upstream master
I keep a branch as the original where then I check before the merge. So before the git-pull command, I run git-checkout for updating only that branch.
# Reference
* [configuration](
* [syncing a fork](
* [pull request](
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment