Skip to content

Instantly share code, notes, and snippets.

@RafaelFunchal
Forked from hugooliveirad/git-sync-fork.sh
Created February 23, 2014 03:40
Show Gist options
  • Save RafaelFunchal/9166509 to your computer and use it in GitHub Desktop.
Save RafaelFunchal/9166509 to your computer and use it in GitHub Desktop.
# 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