DEV Community

Discussion on: How to undo the last commit

Collapse
 
isabelcmdcosta profile image
Isabel Costa

Thanks for the suggestion. I used that before, but in the last problems where I had to undo the commits and then push the changes, that was the solution that worked for me. Also, I didn't mind having a commit dedicated to the revert (with the prefix) on the git history. I think it is a possible solution too.