-
-
Save dariodiaz/6243057 to your computer and use it in GitHub Desktop.
git: undo everything since your last commit, including the addition of new files
This file contains hidden or 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 gundo='git reset HEAD~ && git clean -df' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another recomendation
Put this in .gitconfig