DEV Community

Discussion on: How to undo the last commit

Collapse
 
johand profile image
Johan • Edited

I use git reset HEAD~1 to undo the last commit from a local branch and keep the modifications, this is a way for easily fix the changes