Re: detached HEAD before root commit - possible?
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jun 24, 2013, 10:41 UTC
- Message-ID
- <vpqr4frzt81.fsf@anie.imag.fr>
- In-Reply-To
- <20130623225505.GO20052@goldbirke>
SZEDER Gábor <szeder@ira.uka.de> writes:
Show 8 quoted lines
> 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/