Skip to content

Instantly share code, notes, and snippets.

@wochap
Created March 16, 2017 22:46
Show Gist options
  • Save wochap/21c9f79185de445b0baf185457ed517a to your computer and use it in GitHub Desktop.
Save wochap/21c9f79185de445b0baf185457ed517a to your computer and use it in GitHub Desktop.
Git commands
  • Update fork repository
# add upstream
$ git remote upstream

# fetch from upstream
$ git fetch upstream

# rebase or merge with branch to update
$ git rebase upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment