问题
I am pretty sure I have tried everything, figured I would ask all the gurus on here.
Background: I had an SVN repository on an old linux box. I accessed this SVN repo with git-svn. The system's hard drive crashed and the SVN repo was lost.
Question:
Since I have an entire backup of the SVN repository on my local machine through me using GIT, I would like to figure out how to publish everything, including previous commits from my local machine to the new SVN server (that now is on a RAID 5 array).
Currently the projects still have the old SVN information in them, so I need to figure out how to get rid of that as well as migrating the GIT repo to the new SVN repo I set up.
I have contemplated setting up a remote GIT repo, but none of my co-programmers know/want to learn how to use GIT because currently they use the SVN plugin for eclipse and it is ultra easy, even though I am the one who saved everyone by using GIT.
回答1:
It looks like Git::SVNReplay might fit the bill.
回答2:
One approach might be to push your Git repository up to a private repo at GitHub, where you can use Git and everybody else can use Subversion to access the same repository.
回答3:
Maybe Pushing an existing git repository to SVN solves your problem.
Use
svn switch --relocate file:///tmp/repos file:///tmp/newlocation .
to connect existing checkouts to the new svn repository.
来源:https://stackoverflow.com/questions/3782112/how-can-i-recover-a-subversion-repository-from-a-git-svn-copy