All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: "Ákos, Tajti" <akos.tajti@intland.com>
Cc: git@vger.kernel.org
Subject: Re: git init doesn't create master branch
Date: Wed, 29 May 2013 14:50:42 +0200	[thread overview]
Message-ID: <vpqk3migdb1.fsf@anie.imag.fr> (raw)
In-Reply-To: <51A5F8E0.8060906@intland.com> (=?iso-8859-1?Q?=22=C1kos=2C?= Tajti"'s message of "Wed, 29 May 2013 14:47:28 +0200")

"Ákos, Tajti" <akos.tajti@intland.com> writes:

> Dear List,
>
> the manual of git init says: "An initial HEAD file that references the
> HEAD of the master branch is also created."
>
> However, after creating the repository using git init there's no
> master branch.

Right, but HEAD still points to it ;-). We sometimes call this an
"unborn branch".

> How can make sure that master is created?

It will be created when you do the first commit. If you insist in having
master created before you actually start working, you can run:

  git commit -m "Initial empty commit" --allow-empty

Right after "git init".

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

  reply	other threads:[~2013-05-29 12:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-29 12:47 git init doesn't create master branch "Ákos, Tajti"
2013-05-29 12:50 ` Matthieu Moy [this message]
2013-05-29 12:54   ` Ramkumar Ramachandra
2013-05-29 13:01     ` "Ákos, Tajti"
2013-05-29 13:08       ` Matthieu Moy
2013-05-29 13:20         ` "Ákos, Tajti"
2013-05-29 13:20       ` Ramkumar Ramachandra
2013-05-29 18:37       ` Junio C Hamano

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=vpqk3migdb1.fsf@anie.imag.fr \
    --to=matthieu.moy@grenoble-inp.fr \
    --cc=akos.tajti@intland.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.