From: Matthieu Moy Date: Mon, 24 Jun 2013 10:41:18 GMT Subject: Re: detached HEAD before root commit - possible? Message-ID: In-Reply-To: <20130623225505.GO20052@goldbirke> SZEDER Gábor writes: > 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 Is "git checkout --orphan" what you're looking for? -- Matthieu Moy http://www-verimag.imag.fr/~moy/