git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Carlos Martín Nieto" <cmn@elego.de>
To: redhat1981 <redhat1981@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How to take dump and import to new git repository
Date: Mon, 7 Nov 2011 12:46:48 +0100	[thread overview]
Message-ID: <20111107114648.GC10936@beez.lab.cmartin.tk> (raw)
In-Reply-To: <1320666117862-6970049.post@n2.nabble.com>

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

On Mon, Nov 07, 2011 at 03:41:57AM -0800, redhat1981 wrote:
> Hi,
> 
> I am SVN admin, Fluent with SVN, Git I am a new user, Please let me know,
> How to take dump of one git repository and then import that Dump to new
> Repo.

This is what cloning a repository does. You're probably looking for
the --mirror option.

   git clone --mirror somerepo.git newrepo.git

will give you a repository in newrepo.git that has all the branches
and tags from somerepo.git.

   cmn



[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

  reply	other threads:[~2011-11-07 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 11:41 How to take dump and import to new git repository redhat1981
2011-11-07 11:46 ` Carlos Martín Nieto [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-11-07 11:43 redhat1981
2011-11-07 11:44 redhat1981

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=20111107114648.GC10936@beez.lab.cmartin.tk \
    --to=cmn@elego.de \
    --cc=git@vger.kernel.org \
    --cc=redhat1981@gmail.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).