Git move from SVN: Where does git 2.6 store svn tracking branches?

I have the task to move a project from SVN to Git and I followed the tutorial in The good point: it worked! The sad point, the tutorial seems to be out-dated when it comes to moving the remote refs for tags and branches.

The tutorial states, that they are stored in


however, in my svn clone, this directory is empty. They seem to be stored in


Same for branches, I expected them in


but found them in


So, my question to you is now: is it safe to follow the tutorial but replace the corresponding paths with the one, I found?

Edit 1:

Assuming that it is indeed safe, I copied the references to their new destination. Unfortunately, that doesn’t work for me:

$ git tag --list


Even though, the folder .git/ref/tags/ is not empty. There I find tag-named folders with the following files:

-rw-r--r-- 1 delo 1049089   96 Nov 12 10:00 .rev_map.9585454d-0aa9-4b53-3453-ca0f383a6637
-rw-r--r-- 1 delo 1049089 247K Nov 12 10:00 index
-rw-r--r-- 1 delo 1049089   24 Nov 12 10:00 unhandled.log

Same for the branches. I think, this is not what it is supposed to be…

How do I fix that?

  • Git Extensions usable with SVN repos?
  • Push git repository to remote subversion with history
  • “svn list” ignores externals
  • Magento staging and production
  • Convert every individual parent directory in a GIT repo into its own repo
  • TortoiseSVN Won't Allow Me To Add Any Files
  • Versioning of hard-to-diff files
  • git svn rebase is failing with a conflict to a file that does not exist in git
  • One Solution collect form web for “Git move from SVN: Where does git 2.6 store svn tracking branches?”

    I think it is pretty safe. Note that you could always create a backup before moving them.

    Another approach is to use the steps from this tutorial.

    Basically, you can do:

    for tag in `git branch -r | grep "tags/" | sed 's/ tags\///'`; do
      git tag -a -m"Converting SVN tags" $tag refs/remotes/$tag
    Git Baby is a git and github fan, let's start git clone.