[英]How can I recover a Subversion repository from a git-svn copy?
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. 背景:我在一个旧的Linux机器上有一个SVN存储库。 I accessed this SVN repo with git-svn. 我用git-svn访问了这个SVN repo。 The system's hard drive crashed and the SVN repo was lost. 系统硬盘崩溃,SVN回购丢失。
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). 由于我通过使用GIT在本地计算机上对SVN存储库进行了完整备份,因此我想弄清楚如何发布所有内容,包括从本地计算机到新SVN服务器的先前提交(现在是在RAID 5上)数组)。
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. 目前这些项目仍然有旧的SVN信息,所以我需要弄清楚如何摆脱它以及将GIT仓库迁移到我设置的新SVN仓库。
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. 我已经考虑过建立一个远程GIT仓库,但我的共同程序员都不知道/想要学习如何使用GIT,因为目前他们使用SVN插件进行eclipse并且它非常容易,即使我是拯救每个人的人通过使用GIT。
看起来Git :: SVNReplay可能符合要求。
一种方法可能是将您的Git存储库推送到GitHub上的私有仓库,您可以在其中使用Git,其他所有人都可以使用Subversion访问同一个存储库。
Maybe Pushing an existing git repository to SVN solves your problem. 也许将现有的git存储库推送到SVN可以解决您的问题。
Use 采用
svn switch --relocate file:///tmp/repos file:///tmp/newlocation .
to connect existing checkouts to the new svn repository. 将现有签出连接到新的svn存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.