git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Now what: multiple HEAD refs
@ 2005-12-15  9:05 Alex Riesen
  2005-12-15  9:29 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Alex Riesen @ 2005-12-15  9:05 UTC (permalink / raw)
  To: git

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?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-12-15 15:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-15  9:05 Now what: multiple HEAD refs Alex Riesen
2005-12-15  9:29 ` Junio C Hamano
2005-12-15 10:16   ` Alex Riesen
2005-12-15 14:19     ` Junio C Hamano
2005-12-15 15:14       ` Alex Riesen
2005-12-15 14:30     ` Junio C Hamano
2005-12-15 14:54       ` Alex Riesen
2005-12-15 15:40         ` Johannes Schindelin
2005-12-15 15:57           ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).