Skip to content

Instantly share code, notes, and snippets.

@npenkov
Created December 29, 2017 12:59
Show Gist options
  • Save npenkov/e3d2445dcdb438283e079685bde76b51 to your computer and use it in GitHub Desktop.
Save npenkov/e3d2445dcdb438283e079685bde76b51 to your computer and use it in GitHub Desktop.
GIT Squash all commits alias
git config --global alias.squash-all '!f(){ git reset $(git commit-tree HEAD^{tree} -m "${1:-A new start}");};f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment