Reputation: 1036
I have exported tar.gz file from SVN. How can I create GIT repo from this?
Upvotes: 1
Views: 569
Reputation: 66339
Untar the archive somewhere, and then use git-svn to create a git repository from it.
I.e.
cd /tmp
tar xvzf repo.tar.gz
cd /home/me
git-svn clone file:///tmp/repo
If it's a standard svn layout, you can import the branches with
cd /home/me
git-svn clone -stdlayout file:///tmp/repo
If you created the archive to enable yourself to create a git repo from it - it might be easier to just point at your existing svn repository.
Upvotes: 1