How can I recover a Subversion repository from a git-svn copy?

流过昼夜 提交于 2019-12-07 12:42:02

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!