Now what: multiple HEAD refs
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Dec 15, 2005, 09:05 UTC
- Message-ID
- <81b0412b0512150105p5bacd6a1j938824ae2ab96858@mail.gmail.com>
Hi,
just a heads-up for everyone tried "git pull" after using "git merge" too much:
$ git pull . ref1 HEAD (notice the space!)
will happily create refs/heads/HEAD. What happens next is not easily to understand: all files suddenly declared "New" by "git status", "git checkout" does not work, reporting "Need a single revision" (which is actually _the_ hint here).
The solution is simple: remove .git/refs/heads/HEAD
Maybe "git fsck-object" can hint on multiple HEADS?