The other day I got a lovely email from one of my readers asking how to revert a commit that was made wrongly. I looked back at my articles and realized I haven't ever noted this down. We'll be looking at a couple of levels of changes. Each one required a slightly different approach.

•3m read time•From dev.to
Post cover image
Table of contents
Undo changes that you haven't committed in GitUndo a commit that has not been pushedUndo an already pushed commit
3 Comments

Sort: