Created
February 6, 2012 16:16
-
-
Save rafbm/1753053 to your computer and use it in GitHub Desktop.
Sane aliases for `git reset`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
unstage = reset HEAD # unstage | |
clear = reset --hard HEAD # erase uncommited file edits (destructive!) | |
uncommit = reset HEAD~1 # erase last commit but keeps related file edits | |
rollback = reset --hard HEAD~1 # erase last commit and related file edits (destructive!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment