Re: Bug: "git checkout -b" should be allowed in empty repo
On Mon, Feb 06, 2012 at 10:17:55AM -0800, Junio C Hamano wrote:
Show 24 quoted lines
> > PS I probably would have done it as:
> >
> > git init vendor
> > cd vendor
> > import import import
> > cd ..
> >
> > git init project
> > cd project
> > git fetch ../vendor master:vendor
> >
> > but I don't think there's anything wrong with your approach (in fact,
> > it's slightly more efficient).
>
> Probably I am slower than my usual slow self this morning. Does Michael's
> approach go like this:
>
> git init project
> cd project
> import import import
> git branch -m vendor
> git checkout -b master
>
> to fork from third-party codebase?
I thought it would have been:
git init project
cd project
git checkout -b vendor
import import import
git checkout -b master
modify modify modify
but he can probably say more.
-Peff