简体   繁体   English

如何从git-svn副本中恢复Subversion存储库?

[英]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.

相关问题 我可以使用本地跟踪git-svn分支恢复SVN存储库中丢失的提交吗? - Can I recover lost commits in a SVN repository using a local tracking git-svn branch? 我可以让git-svn导入一个本身包含git存储库的Subversion存储库吗? - Can I make git-svn import a Subversion repository which itself contains git repositories 如何使用git-svn clone只从Subversion存储库获取HEAD修订版? - How to use git-svn clone to only get the HEAD revision from a Subversion repository? 如何 git-svn 从 Subversion 存储库克隆最后 n 个修订? - How to git-svn clone the last n revisions from a Subversion repository? 如何从git-svn中恢复在存储库中放置一个不同的culduped复制文件? - How to recover from git-svn putting a different cased dulplicate file in the repository? 如何将IntelliJ与Subversion,Git和“git-svn”一起使用 - How do I use IntelliJ with Subversion, Git and “git-svn” git-svn:分支在svn存储库中重命名,如何告诉git-svn? - git-svn: branch renamed in svn repository, how do I tell git-svn? 如何使用git-svn设置Subversion属性 - How to set Subversion properties with git-svn 如何使用“git-svn”签出本地 svn 存储库? - How can I use "git-svn" to checkout a local svn repository? 如何使用git-svn处理svn信息库的不同部分? - How can I use git-svn to work with disparate parts of an svn repository?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM