Skip to content

Instantly share code, notes, and snippets.

@nfrance709
nfrance709 / squash-commits.sh
Created April 10, 2022 13:22 — 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