git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to take dump and import to new git repository

From
Carlos Martín Nieto <cmn@elego.de>
Date
Nov 7, 2011, 11:46 UTC
Message-ID
<20111107114648.GC10936@beez.lab.cmartin.tk>
In-Reply-To
<1320666117862-6970049.post@n2.nabble.com>
On Mon, Nov 07, 2011 at 03:41:57AM -0800, redhat1981 wrote:
Show 5 quoted lines
> 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
Previous: redhat1981
Message 2 of 2 in “How to take dump and import to new git repository”
  1. redhat1981Nov 7, 2011
  2. Carlos Martín NietoNov 7, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.