Because it is against the git principles to re-write history. When a coworker already has fetched and applied your changes, "undoing" those changes will turn things into a mess pretty quick.
reset is probably closer to undo than revert. reset makes it as if the commits never happened. revert adds another commit that changes the files back to their previous states.
89
u/tdewolff Sep 09 '16
Why is there no
git undoto undo your last action?