Re: Bug: "git checkout -b" should be allowed in empty repo
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 6, 2012, 18:17 UTC
- Message-ID
- <7vpqdr7rn0.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120206085707.GA24149@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 13 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 masterto fork from third-party codebase?
Or Michael had his own 'master' already and wanted an independent orphaned history from vendor, perhaps like this?
git init project
cd project
work work work
git checkout --orphan vendor
: perhaps "git clean -f" here???
import import import
git checkout master
: rootless merge???
git merge vendor