Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
- From
Jeff King <peff@peff.net>
- Date
- Nov 13, 2007, 11:40 UTC
- Message-ID
- <20071113114059.GC15845@sigill.intra.peff.net>
- In-Reply-To
- <vpqpryefmhj.fsf@bauges.imag.fr>
On Tue, Nov 13, 2007 at 11:50:16AM +0100, Matthieu Moy wrote:
Show 14 quoted lines
> The "git remote add" thing adds this to my .git/config: > > [remote "origin"] > url = /tmp/git1 > fetch = +refs/heads/*:refs/remotes/origin/* > > While clone normally does a bit more: > > [remote "origin"] > url = /tmp/git1/.git > fetch = +refs/heads/*:refs/remotes/origin/* > [branch "master"] > remote = origin > merge = refs/heads/master
Also, git-clone sets up the HEAD symref automagically (you can specify it manually with git-remote, but git-clone will put it from the remote's HEAD).
-Peff