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