I'm looking for a way to "reset" a repository into a clean state. Hold up! Before you say
- just use
git-clean - ... or
git-reset
this is not what I am looking for! I don't want to reset files, but state. That means, aborting all in-progress operations like rebases, merges, bisect, and removing any auxiliary files like MERGE_HEAD or MERGE_MSG inside the .git directory itself.
I could do it manually of course with a series of commands, but I was hoping for something more elegant that doesn't require me to know what state the repo currently is in.