squash Squash multiple commits into a single commit. Part of…
Squash multiple commits into a single commit. Part of
git-extras
. More information: https://github.com/tj/git-extras/blob/master/Commands.md#git-squash.
git squash {{source_branch}}
git squash {{commit}}
n
latest commits and commit with a message:git squash HEAD~{{n}} "{{message}}"
n
latest commits and commit concatenating all individual messages:git squash --squash-msg HEAD~{{n}}