# How to take dump and import to new git repository

2 messages from 2011-11-07 to 2011-11-07. Participants: redhat1981, Carlos Martín Nieto.
Thread: https://gitlist.dev/t/28870

## redhat1981, 2011-11-07 11:41

Subject: How to take dump and import to new git repository
Message-ID: <1320666117862-6970049.post@n2.nabble.com>
URL: https://gitlist.dev/e/1320666117862-6970049.post%40n2.nabble.com

```
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.

Thank you
redhat1981@gmail.com

--
View this message in context: http://git.661346.n2.nabble.com/How-to-take-dump-and-import-to-new-git-repository-tp6970049p6970049.html
Sent from the git mailing list archive at Nabble.com.

```

## Carlos Martín Nieto, 2011-11-07 11:46

Subject: Re: How to take dump and import to new git repository
Message-ID: <20111107114648.GC10936@beez.lab.cmartin.tk>
URL: https://gitlist.dev/e/20111107114648.GC10936%40beez.lab.cmartin.tk
In-Reply-To: <1320666117862-6970049.post@n2.nabble.com>

```
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



```
