我可以从SVN导入Git而无需连接到远程服务器? [英] Can I import from SVN to Git without connecting to a remote server?

查看:117
本文介绍了我可以从SVN导入Git而无需连接到远程服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

git-svn如何克隆Subversion版本库中的最新版本?


< blockquote>



我试图将我的WordPress插件托管在大量的WordPress插件库中。



我厌倦了使用 git-svn ,它耗时过长(单个插件超过4-5个小时),我有近20个插件迁移。



我在我的机器上签出了SVN回购协议。有什么方法可以通过使用存储在 .svn 文件夹中的历史信息而不连接到SVN服务器来将SVN repo导入到Git中?

解决方案

您的计算机上没有SVN repo 。你有一个工作副本

与Git不同,SVN在检出工作副本时并未下载整个存储库以及整个历史记录。它只是下载最新版本的文件。



因此,不可能从工作副本中获取SVN项目的历史记录。


Possible Duplicate:
How to git-svn clone the last n revisions from a Subversion repository?

I am trying to move my WordPress Plugins which are hosted in the massive WordPress Plugins repo to Git.

I tired using git-svn and it is taking too long (more than 4-5 hours for a single Plugin) and I have close to 20 Plugins to migrate.

I have the checked out SVN repo on my machine. Is there any way by which we can import the SVN repo into Git by just using the history information stored in the .svn folders without connecting to the SVN server?

解决方案

You don't have the SVN repo on your machine. You have a working copy.

Unlike Git, SVN doesn't download the entire repository, with the whole history, when checking out a working copy. It just downloads the latest versions of the files.

So no, it's impossible to get the history of an SVN project from a working copy.

这篇关于我可以从SVN导入Git而无需连接到远程服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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