From: Matthieu Moy Date: Wed, 29 May 2013 12:50:42 GMT Subject: Re: git init doesn't create master branch Message-ID: In-Reply-To: <51A5F8E0.8060906@intland.com> "Ákos, Tajti" 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/