Back to all tips

Git Pro Tips

Drop a Commit

🗓️ Published: 4/15/2026 Originally on X: 6/21/2022
Drop a Commit

To drop a commit from your recent Git history, start an interactive rebase:

git rebase -i HEAD~3

Find the commit you want to remove and change pick to drop, then save and exit.

Discuss this tip on