It's not a real git command, but it's an alias to wipe out any uncommitted changes, new files, etc. Basically gets you back to a clean state (i.e., the the last commit.) I do it all the time! (Warning: there's no going back once you run it though!)
This is how to set it up in your ~/.gitconfig:
[alias]
nevermind = !git reset --hard HEAD && git clean -d -f
It's not a real git command, but it's an alias to wipe out any uncommitted changes, new files, etc. Basically gets you back to a clean state (i.e., the the last commit.) I do it all the time! (Warning: there's no going back once you run it though!)
This is how to set it up in your
~/.gitconfig
:[alias]
nevermind = !git reset --hard HEAD && git clean -d -f
Ooo, that's an interesting one! Very fitting alias too, haha š! Will have to add that one to the toolbox šš¾. Thanks, Hamish!
Glad you like it Muna! I love the name too, it always matches how I'm feeling when I run it. š
haha good one :D