From: Jeff King <peff@peff.net>
To: supadhyay <supadhyay@imany.com>
Cc: git@vger.kernel.org
Subject: Re: how to clone/checkout branch/tag vesion from GIT repository
Date: Fri, 11 May 2012 13:22:14 -0400 [thread overview]
Message-ID: <20120511172214.GC26916@sigill.intra.peff.net> (raw)
In-Reply-To: <1336740319206-7550370.post@n2.nabble.com>
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
next prev parent reply other threads:[~2012-05-11 17:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-10 13:39 how to clone/checkout branch/tag vesion from GIT repository supadhyay
2012-05-10 13:56 ` Jeff King
2012-05-10 14:19 ` Suchi Upadhyay
2012-05-10 14:39 ` Jeff King
2012-05-11 12:45 ` supadhyay
2012-05-11 17:22 ` Jeff King [this message]
2012-05-12 10:26 ` supadhyay
2012-05-14 6:18 ` supadhyay
2012-05-14 17:33 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120511172214.GC26916@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=supadhyay@imany.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).