detached HEAD before root commit - possible?
- From
SZEDER Gábor <szeder@ira.uka.de>
- Date
- Jun 23, 2013, 22:55 UTC
- Message-ID
- <20130623225505.GO20052@goldbirke>
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