Re: how to clone/checkout branch/tag vesion from GIT repository
- From
Jeff King <peff@peff.net>
- Date
- May 11, 2012, 17:22 UTC
- Message-ID
- <20120511172214.GC26916@sigill.intra.peff.net>
- In-Reply-To
- <1336740319206-7550370.post@n2.nabble.com>
On Fri, May 11, 2012 at 05:45:19AM -0700, supadhyay wrote:
Show 13 quoted lines
> 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