Skip to content

Instantly share code, notes, and snippets.

@tuanndworks
tuanndworks / squash-commits.sh
Created April 21, 2021 13:44 — forked from jbub/squash-commits.sh
git squash last two commits into one
git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
pick b76d157 b
s a931ac7 c