Git development
 help / color / mirror / Atom feed
* detached HEAD before root commit - possible?
@ 2013-06-23 22:55 SZEDER Gábor
  2013-06-23 23:54 ` Jonathan Nieder
  2013-06-24 10:41 ` Matthieu Moy
  0 siblings, 2 replies; 5+ messages in thread
From: SZEDER Gábor @ 2013-06-23 22:55 UTC (permalink / raw)
  To: git

I suspect that detaching HEAD before a root commit is not possible by
design.  What would HEAD contain then!?  'git checkout' seems to
corroborate:

$ git init
Initialized empty Git repository in /tmp/test/.git/
$ git checkout --detach
fatal: You are on a branch yet to be born

Are there some plumbing commands and options that would still allow
this, or can I rely on that that it's impossible?


Thanks,
Gábor

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

end of thread, other threads:[~2013-06-24 10:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-23 22:55 detached HEAD before root commit - possible? SZEDER Gábor
2013-06-23 23:54 ` Jonathan Nieder
2013-06-24  4:20   ` Martin von Zweigbergk
2013-06-24  5:01     ` Junio C Hamano
2013-06-24 10:41 ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox