Skip to content

Instantly share code, notes, and snippets.

@jmeridth
Created October 6, 2011 19:50
Show Gist options
  • Save jmeridth/1268455 to your computer and use it in GitHub Desktop.
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)
# 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