Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting a local svn repo dump to git

I searched related questions but I couldn't find anything matching my specific situation: I have some old repository archives from an SVN server that was taken down years ago. They're tarballs of the original repository structure on the server. What I want to do is convert them to git repositories as a basis for future work/reviving the projects. I've already read several tutorials about the conversion process, and I think I can figure out the authors conversion, branches mapping, etc., but they all assume you have an SVN server and a url for the repository. Do I need to install and setup and SVN server to do this conversion, or is there some way I can point either git clone or svn2git (or another tool) at the repo dump I have?

like image 424
R.. GitHub STOP HELPING ICE Avatar asked Apr 14 '13 22:04

R.. GitHub STOP HELPING ICE


People also ask

Can you convert SVN to Git?

We've broken down the SVN-to-Git migration process into 5 simple steps: Prepare your environment for the migration. Convert the SVN repository to a local Git repository. Synchronize the local Git repository when the SVN repository changes.

How you will migrate the projects from SVN to GitHub?

Prepare a migration environment. Convert the source SVN repository to a local Git repository. (Optional) Synchronize the local Git repository with any changes from SVN repository while developers continue using SVN. Push the local Git repository to a remote Git repository hosted on Azure Repos.

How do I clone a local repository in SVN?

# Clone a repo with standard SVN directory layout (like git clone): git svn clone http://svn.example.com/project --stdlayout --prefix svn/ # Or, if the repo uses a non-standard directory layout: git svn clone http://svn.example.com/project -T tr -b branch -t tag --prefix svn/ # View all branches and tags you have ...


1 Answers

install subversion locally in order to import your dump, then with git-svn package.

You can use git svn clone file:///path/to/svn/repo /path/to/empty/dir

like image 187
Asenar Avatar answered Sep 22 '22 03:09

Asenar