Skip to content

Instantly share code, notes, and snippets.

@ignatov
Last active December 23, 2015 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ignatov/31de920a8d8053655351 to your computer and use it in GitHub Desktop.
Save ignatov/31de920a8d8053655351 to your computer and use it in GitHub Desktop.
Rebase PR
rebase-pr() {
br=pr$1
set -x
git stash
git fetch origin pull/$1/head:$br
git checkout $br
git rebase master $br
git checkout master
git rebase $br master
git stash pop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment