Thread (1 message) 1 message, 1 author, 2016-06-15

Re: detached HEAD before root commit - possible?

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:57:53

SZEDER Gábor [off-list ref] 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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help