DEV Community

Discussion on: and the second top voted question on StackOverflow is...

Collapse
 
david_j_eddy profile image
David J Eddy • Edited

Two (better) options IMO:

'git commit --amend' to fix the message

'git revert' to undo a commit change set

Why do I think these are better? No rewriting of the history! No need to understand HEAD, graph theory, or the other abstractions. And they maintain the forward only design paradigm of git.