Created
October 6, 2011 19:50
-
-
Save jmeridth/1268455 to your computer and use it in GitHub Desktop.
bash scripts to speed up rebasing, pauses on interactive rebase commits (so I can squash, edit, etc)
This file contains 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
# REBASE | |
#!/bin/bash | |
if [ $# -eq 1 ] | |
then | |
git checkout master && git pull origin master && git checkout $1 && git rebase -i master | |
else | |
echo 'Please provide a feature branch: ./rebase.sh feature1324' | |
fi | |
#FINISH REBASE | |
#!/bin/bash | |
if [ $# -eq 1 ] | |
then | |
git checkout master && git merge $1 && git push origin master | |
else | |
echo 'Please provide a feature branch: ./finishrebase.sh feature1324' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment