Re: git init doesn't create master branch
- From
- Ákos, Tajti <akos.tajti@intland.com>
- Date
- May 29, 2013, 13:01 UTC
- Message-ID
- <51A5FC17.8000608@intland.com>
- In-Reply-To
- <CALkWK0m=m89QcnMNg9gEVeb7ZHSRd7ZMcL+y8gYuzn8YCTsSYw@mail.gmail.com>
Thanks for clarifying this thing for me! I don't really insist on having a master branch it's just that I tried to pull from a repository bundle and I got this error message:
"Cannot merge multiple branches into empty head"
The command was:
git pull ../dump.dmp refs/heads/*:refs/heads/*
Is this a better way of doing this?
Thanks, Ákos
2013.05.29. 14:54 keltezéssel, Ramkumar Ramachandra írta:
Show 16 quoted lines
> 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.