git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Linux 2.6.15-rc2

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 24, 2005, 18:44 UTC
Message-ID
<Pine.LNX.4.64.0511241037400.13959@g5.osdl.org>
In-Reply-To
<4385BAFC.7070906@op5.se>
On Thu, 24 Nov 2005, Andreas Ericsson wrote:
Show 5 quoted lines
> 
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2.6
> 
> which works flawlessly for me although it takes quite some time to transfer
> all the data.

The initial clone is very expensive for the native git protocol: the protocol is designed to scale well for incremental updates (ie you have a _huge_ repository that has changed just a bit, and the protocol should work well for that), and that makes the initial clone quite expensive as it marshalls the whole damn repository into this nice packed format.

So it's often nicer (certainly on the remote server) to use "rsync" for the initial clone, and then only after that start using the git protocol.

(This is in no way really fundamental, and the server could cache the packs it generates for initial clones, but that isn't implemented yet, and probably won't be for some times).

Of course, especially if you're mostly bandwidth-constrained and the server side is not under a big load, using the native git protocol may actually be faster anyway. Because it's always going to generate the nicest packing, while rsync:// will just use whatever packing that the server happens to have at that point (but I do repack every few weeks, so rsync for the initial clone should never be horribly bad - and since I just repacked, it should get that "perfect" pack too).

		Linus
Previous: Andreas EricssonNext: Junio C Hamano
Message 3 of 10 in “Re: Linux 2.6.15-rc2”
  1. Ed TomlinsonNov 24, 2005
  2. Andreas EricssonNov 24, 2005
  3. Linus TorvaldsNov 24, 2005
  4. Junio C HamanoNov 24, 2005
  5. Linus TorvaldsNov 24, 2005
  6. Junio C HamanoNov 24, 2005
  7. Linus TorvaldsNov 24, 2005
  8. Nick HengeveldNov 24, 2005
  9. Ed TomlinsonNov 25, 2005
  10. Andreas EricssonNov 25, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.