Background: Swip was working on a test project solely for the purpose of trying out git. This is a local one-person repository that has not been shared so swip did a reset hard in order to obliterate some unwanted commits:
:git reset --hard 6aa32cfecf4
HEAD is now at 6aa32cf auto commit Sun Feb 28 16:00:10 -0800 2010
Then swip went along happily adding new commits to the project. Then, when swip looked at the graphical representation of the commit history, swip discovered that there appears to be an anonymous branch of the obliterated commits. It does not show up as a branch using git branch, but it does show up in the GUI.
Questions 1: How can swip get rid of this "anonymous branch" ... and what is swip really looking at here (the part in the red box)? What are some pointers to help swip understand what happened when swip did the hard reset so swip can better set swip's expectations.
Questions 2: Assuming swip had shared the project with other people. What would be the alternative to do the same (or similar thing) without doing a hard reset?