From: "SZEDER Gábor" <szeder@ira.uka.de>
To: git@vger.kernel.org
Subject: detached HEAD before root commit - possible?
Date: Mon, 24 Jun 2013 00:55:05 +0200 [thread overview]
Message-ID: <20130623225505.GO20052@goldbirke> (raw)
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
next reply other threads:[~2013-06-23 22:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-23 22:55 SZEDER Gábor [this message]
2013-06-23 23:54 ` detached HEAD before root commit - possible? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130623225505.GO20052@goldbirke \
--to=szeder@ira.uka.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox