Skip to content

Instantly share code, notes, and snippets.

@davglass davglass/git-squash
Created Jun 16, 2014

Embed
What would you like to do?
Place this file in your path and you get: git squash {2..n}
#!/bin/bash
level=$1
if [ "${level}" == "" ]; then
level=2
fi
git rebase --interactive HEAD~${level}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.