git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: supadhyay <supadhyay@imany.com>
Cc: Sitaram Chamarty <sitaramc@gmail.com>, git@vger.kernel.org
Subject: Re: how to clone/checkout branch/tag vesion from GIT repository
Date: Mon, 14 May 2012 13:33:58 -0400	[thread overview]
Message-ID: <20120514173358.GA32368@sigill.intra.peff.net> (raw)
In-Reply-To: <1336818392259-7553161.post@n2.nabble.com>

On Sat, May 12, 2012 at 03:26:32AM -0700, supadhyay wrote:

> 2- from gitolite_home I run below command
> git clone ssh://git@mygitserver.com/ora/data/test.git
> (tis is do the clone of my repository so I can see the actual data inside
> the repository)

As I mentioned before, this should probably be a --mirror clone to get
all of the remote branches, and to create a bare repository. I don't use
gitolite, so perhaps there is some need I don't know about for it to
have a working tree. But in general, I would think having a non-bare
repository would be a problem here, as it would prevent pushes to the
checked-out branch (but again, maybe there is some gitolite-specific
thing I am missing).

-Peff

      parent reply	other threads:[~2012-05-14 17:34 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
2012-05-12 10:26           ` supadhyay
2012-05-14  6:18             ` supadhyay
2012-05-14 17:33             ` Jeff King [this message]

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=20120514173358.GA32368@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=sitaramc@gmail.com \
    --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).