Skip to content

Instantly share code, notes, and snippets.

@jtr109
Created June 19, 2017 10:27
Show Gist options
  • Save jtr109/b855bf6146fa0b32fa911095bef32036 to your computer and use it in GitHub Desktop.
Save jtr109/b855bf6146fa0b32fa911095bef32036 to your computer and use it in GitHub Desktop.
rebase master from uptream into current branch
alias rebase_upstream="export CURRENT_BRANCH_NAME=`git branch | grep \* | cut -d ' ' -f2` && git checkout master && git pull upstream master && git checkout $CURRENT_BRANCH_NAME && git rebase master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment