RE: [FEATURE REQUEST] git clone, just clone selected branches?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Linus Torvalds [mailto:torvalds@xxxxxxxxxxxxxxxxxxxx] 
> Sent: den 10 oktober 2007 21:38
> To: Joakim Tjernlund
> Cc: git@xxxxxxxxxxxxxxx
> Subject: Re: [FEATURE REQUEST] git clone, just clone selected 
> branches?
> 
> 
> 
> On Wed, 10 Oct 2007, Joakim Tjernlund wrote:
> > 
> > I know I can use git remote to do this, but it is a bit clumsy 
> > when starting a new repo.
> 
> How about just
> 
> 	git init
> 	.. set up remote tracking info in .git/config ..
> 	git fetch remote
> 
> which should do what you want.
> 
> 		Linus

>From git remote man page:
 o  Imitate git clone but track only selected branches

          $ mkdir project.git
          $ cd project.git
          $ git init
          $ git remote add -f -t master -m master origin git://example.com/git.git/
          $ git merge origin

yes, this does the trick too but that is more to type so I thought
it would be simpler if I could just tell git clone which branches I want.
Now, this isn't a killer feature to me so if you don't like it, I good
with that too.

 Jocke

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux