Re: how to clone/checkout branch/tag vesion from GIT repository

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

 



On Fri, May 11, 2012 at 05:45:19AM -0700, supadhyay wrote:

> branch - br6-1-0 is already exists on remote. I have my few data which are
> associated on this branch and I want to get that specific data from br6-1-0.
> 
> I did cvs2git and its working fine without any issue. 
> 
> Also I can see the  list of branches when I run "git branch -r"  on my
> GITserver through "git" user. But after did this migration I do clone from
> git to gitolite on the same server (to manage with user functionality). Now,
> after cloning to gitolite if I run "git branch -r" it shows only master.
> 
> I follow belwo step
> 1- cvs 2 git  >> I can see list of branches here 
> 2- git 2 gitolite  >> I can not see any branch except master.

How did you do the clone? A regular "clone" will clone only local
branches of the remote repository (so if B fetches from A, and C fetches
from B, C will not bother with A's branches).

If you are trying to clone the repository to act as a server repository
in gitolite, I think you would want to use "git clone --mirror". This will
omit the working tree (which you should not need for the server end),
and will fetch all branches (exactly mirroring the state of the original
repository).

-Peff
--
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]