Skip to content

Instantly share code, notes, and snippets.

@hugooliveirad
Created February 21, 2014 21:33
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hugooliveirad/9144013 to your computer and use it in GitHub Desktop.
Save hugooliveirad/9144013 to your computer and use it in GitHub Desktop.
Sync Fork On GitHub
# Sync fork with original repository
#
# Requires an "upstream" remote, pointing to original repo
# e.g. `git remote add upstream git@github.com:user/repo.git`
alias git-sync-fork="git fetch upstream; git checkout master; git merge upstream/master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment