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"