From: Junio C Hamano Date: Mon, 06 Feb 2012 18:17:55 GMT Subject: Re: Bug: "git checkout -b" should be allowed in empty repo Message-ID: <7vpqdr7rn0.fsf@alter.siamese.dyndns.org> In-Reply-To: <20120206085707.GA24149@sigill.intra.peff.net> Jeff King writes: > 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? 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