Last Updated: February 25, 2016
·
836
· elcuervo

git undo

Add this to your ~/.gitconfig

[alias]
    undo = reset --soft HEAD@{1}

Now if you do something stupid (like an amend that should not exist) just run : git undo.

Written by elcuervo

Recommend
Say Thanks
Update Notifications Off
Respond