Re: Git branch bug
- From
- Guido Ostkamp <git@ostkamp.fastmail.fm>
- Date
- May 5, 2007, 17:44 UTC
- Message-ID
- <Pine.LNX.4.64.0705051942550.14963@bianca.dialin.t-online.de>
- In-Reply-To
- <Pine.LNX.4.64.0705051841200.4015@racer.site>
Show 14 quoted lines
> On Sat, 5 May 2007, Guido Ostkamp wrote: > >> $ mkdir test >> $ cd test >> $ git init >> Initialized empty Git repository in .git/ >> $ git branch experimental >> fatal: Not a valid object name: 'master'. >> >> So, it seems it is not possible to create a named branch on an empty >> repository. > > Actually, it is not possible to branch from a non-existing branch. So, > this is somewhat expected from my POV.
>From a git beginners point of view, I would expect that the 'master'
branch is automatically created when performing the 'git init'. Why is this not the case?
Regards
Guido