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

Migrate an svn repo to git - Where did all the branches got? and tags?

From
JMJack Moore <jhmoore719@verizon.net>
Date
May 21, 2010, 04:20 UTC
Message-ID
<CFE20E75-F23D-41EA-89AA-2FF59BFA5DF9@verizon.net>
All,
I have a subversion repository with the usual structure
svn-repo
  |
  +-branches
      +-release1
      +-release2
  +-tags
      +-r1dev
      +-r1test
      +-r2dev
      +-r2test
  +-trunk
that I want to migrate to git.
I cloned the svn repo with
   git svn clone --no-metadata -t tags -b branches -T trunk <repo-url>
I used the example in the Pro Git book.
the cloned repo has files 
  git-repo/.git/refs/heads/master
  git-repo/.git/refs/remotes/trunk
directory
  git-repo/.git/refs/tags
is empty.
Directories git-repo/.git/logs/... have files corresponding to the branches and tags, but they do not appear to reference git objects.
There are unhandled.log.gz files in the .git/svn directory for each branch and tag.
If I do a 
	git branch -r

the branches and tags show up as remote branches. gitk appears to show all of the commits, but I do not see any of the branches and tags.

I would like to make the branches and tags to appear al local to git repo.
Is there a way to do this?
Next: Thomas Rast
Message 1 of 4 in “Migrate an svn repo to git - Where did all the branches got? and tags?”
  1. Jack MooreMay 21, 2010
  2. Thomas RastMay 21, 2010
  3. Jack MooreMay 21, 2010
  4. Ævar Arnfjörð BjarmasonMay 21, 2010

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.