Re: git init doesn't create master branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthieu Moy wrote:
>> 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 branch

Please consider using contrib/completion/git-prompt.sh to make your life easier.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]