Skip to content

Instantly share code, notes, and snippets.

@vochicong
Created July 6, 2017 15:02
Show Gist options
  • Save vochicong/6fdfe7b9d25955518bc077d7f4fdfeb7 to your computer and use it in GitHub Desktop.
Save vochicong/6fdfe7b9d25955518bc077d7f4fdfeb7 to your computer and use it in GitHub Desktop.
Sync a fork of a repository to keep it up-to-date with the upstream repository.
# Sync a fork of a repository to keep it up-to-date with the upstream repository.
# https://help.github.com/articles/syncing-a-fork/
git fetch upstream
git checkout master
git merge upstream/master
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment