Re: git init doesn't create master branch
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- May 29, 2013, 12:54 UTC
- Message-ID
- <CALkWK0m=m89QcnMNg9gEVeb7ZHSRd7ZMcL+y8gYuzn8YCTsSYw@mail.gmail.com>
- In-Reply-To
- <vpqk3migdb1.fsf@anie.imag.fr>
Matthieu Moy wrote:
Show 8 quoted lines
>> 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".
Right. Let me also add that our prompt has support for this; on an unborn branch, my prompt looks like:
artagnon|master#:/tmp/foo$
^
the # indicates unborn branchPlease consider using contrib/completion/git-prompt.sh to make your life easier.