Skip to content

Instantly share code, notes, and snippets.

@victorknust
Forked from RafaelFunchal/git-sync-fork.sh
Created February 2, 2016 11:44
Show Gist options
  • Save victorknust/94e7e41de1fc2a922a7a to your computer and use it in GitHub Desktop.
Save victorknust/94e7e41de1fc2a922a7a 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