4 ms·
When do we get a git commit --undo alias? :)
by amphibean 12y ago
When do we get a git commit --undo alias? :)
- lunarcave 12y agoYou mean git revert?
- herge 12y agogit reset HEAD^ Add --hard, --mixed, --soft for different effects. This command itself can be undone by going through git reflog and finding the appropriate commit.
- Crito 12y agoTo add to this, git-reset enables much more than simply 'undoing' the last commit, so it could not be adequately replaced with `git commit --undo`.
- binarycrusader 12y agoYes, please. I don't use it often, but when I do "hg rollback" makes my life simple.
- saraid216 12y agoSo, you might want to learn about how to put an alias into your rc file.