可以将SVN回购迁移到仅为本地副本的git? [英] Possible to migrate an SVN repo to git that is a local copy only?

查看:233
本文介绍了可以将SVN回购迁移到仅为本地副本的git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SVN服务器无法访问的机器上有一个SVN回购的克隆。用于克隆的程序是Windows的Tortoise SVN。



有什么办法可以将repo的提交历史记录导入github上的git存储库吗?



我试过了

  svnadmin dump repo / .svn> svn.dump 

导致

  svnadmin:E165005:预期的存储库格式'3'或'5';发现格式'12'

这似乎是误导性的,这意味着我无法转储该副本。但是除了倾销之外,还有其他选择吗? 我怀疑现在这是不可能的。本地SVN签出不包含足够的信息作为存储库。没有历史信息 - 全部在服务器上。



您的唯一方法是简单地删除.svn子目录并运行 git init&& amp ; git add。用你的文件创建一个仓库。没有历史。


I have a clone of an SVN repo on my machine for which the SVN server is unreachable. The program used for cloning is Tortoise SVN for Windows.

Is there any way to import the commit history of the repo into a git repository on github?

I tried

svnadmin dump repo/.svn > svn.dump

Resulting in

svnadmin: E165005: Expected repository format '3' or '5'; found format '12'

Which seems to be misleading, meaning I cannot dump that copy. But are there options other than dumping?

解决方案

I suspect now this is impossible. Local SVN checkout doesn't contain enough information to serve as a repository. There is no history information — it's all on the server.

Your only way is to simply remove .svn subdirectories and run git init && git add . to create a repository with your files. No history.

这篇关于可以将SVN回购迁移到仅为本地副本的git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆