code / scripts

Lines748 Shell528 Python72 Lua67 Bourne Again Shell62 make15
1 others 4
Markdown4
(9 lines)
1 #!/sbin/bash
2 # git-squash - A simple script to do git squashing
3 set -e
4 branch="$1"
5 shift
6 git merge --squash "$branch"
7 git commit "$@"
8 git branch -D "$branch"
9 git push origin --delete "$branch"