Skip to content

Instantly share code, notes, and snippets.

@seripap
Created March 2, 2016 14:33
Show Gist options
  • Save seripap/3c25211b77027b3e351a to your computer and use it in GitHub Desktop.
Save seripap/3c25211b77027b3e351a to your computer and use it in GitHub Desktop.
Squash commit (bash/profile)
# squash integer
function squash() {
git rebase -i HEAD~${1}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment