Through a comedy of noob errors I find myself in the following situation in a local repo:
Using git reset
I have maneuvered the branch tags to where I want them, and I would now like to delete the 3 commits on what looks like an unnamed branch. I have researched/tried a variety of things including gc
, prune
without success.
I realize that I could just blow away the local repo and re-clone it, however I'd like to use it as a learning opportunity.
So the question is: How can I delete those commits?