Skip to content

Instantly share code, notes, and snippets.

View mohamedhafezqo's full-sized avatar
😂
CEO of my life, CTO of my localhost, co-founder of my son

Mohamed Hafez mohamedhafezqo

😂
CEO of my life, CTO of my localhost, co-founder of my son
View GitHub Profile
@mohamedhafezqo
mohamedhafezqo / squash-commits.sh
Created October 1, 2018 08:34 — 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