DEV Community

Discussion on: Git - How to fix a bad commit

Collapse
 
sohamraje137 profile image
Soham Patil

git rebase -i Head~x

This works to delete the commit history and rebase your branch on any commit