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

Re: How to not download objects more than needed?

From
sean <seanlkml@sympatico.ca>
Date
Feb 21, 2006, 21:13 UTC
Message-ID
<BAYC1-PASMTP03A58A4F389365AC85DA68AEFC0@CEZ.ICE>
In-Reply-To
<43FB6C42.5000208@gorzow.mm.pl>

On Tue, 21 Feb 2006 20:38:42 +0100 Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl> wrote:

> I have a pecuilar, but common use case for git.
It's not really that peculiar.
> I have linux-2.6 repository pulled and I'd like to download some branch
> (say, netdev-2.6), which uses many of the same objects,
> but not to get all the objects from the git server.

Just make sure you're not using the rsync protocol. Using the native git protocol would be best.

> I've already tried certain commands, but still can't do it,
> and my bandwidth isn't too happy about it.

For instance, make sure your current linus repository is up to date with a "git pull" and then:

git fetch \
   git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git \
   upstream:netdev

will take the "upstream" branch from the netdev repository and name it netdev in your local repository.

Sean
Previous: Radoslaw SzkodzinskiNext: Linus Torvalds
Message 2 of 10 in “How to not download objects more than needed?”
  1. Radoslaw SzkodzinskiFeb 21, 2006
  2. seanFeb 21, 2006
  3. Linus TorvaldsFeb 22, 2006
  4. Jan HarkesFeb 22, 2006
  5. Junio C HamanoFeb 22, 2006
  6. Jan HarkesFeb 22, 2006
  7. Junio C HamanoFeb 22, 2006
  8. git-fetch: follow tag only when tracking remote branch.Junio C Hamano, Feb 22, 2006
  9. Andreas EricssonFeb 22, 2006
  10. Junio C HamanoFeb 21, 2006

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.