Created
March 2, 2017 14:57
-
-
Save anotheremily/b150466cee8d3b6e79464ea8a8251f1f to your computer and use it in GitHub Desktop.
pullpushrebase.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BRANCH=`git symbolic-ref HEAD | sed 's!refs\/heads\/!!'`; \ | |
git stash; \ | |
git checkout master; \ | |
git pull --rebase; \ | |
git checkout $BRANCH; \ | |
git rebase master; \ | |
git pull --rebase; \ | |
git push; \ | |
git stash pop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment