ruby - 试图让 svn2git 在 Windows 上工作

标签 ruby git svn git-svn

我正在将 SVN 存储库迁移到 Git。 git-svn 命令不能正确处理分支和标签,但我偶然发现了一个名为 svn2git 的工具,它似乎可以解决这个问题 (https://github.com/nirvdrum/svn2git)。

我已经尝试设置此工具以在 Windows 上运行,但没有取得太大成功。

我首先将 svn2git 安装复制到 C:\svn2git 并下载 Ruby for Windows (http://rubyinstaller.org/) 并将其保存在 C:\Ruby193。

运行 svn2git 返回

/bin/env: ruby: No such file or directory

然后我将 Ruby 的 bin 和 lib 文件夹分别复制到 svn2git 的 bin 和 lib 文件夹。

运行 svn2git 然后返回

<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>'

有谁知道如何让它在 Windows 环境下工作?谢谢

最佳答案

显然,rubygems.rb 丢失了。按照此处的说明安装它:
https://rubygems.org/pages/download

然后,按照此处的说明安装 svn2git:
https://github.com/nirvdrum/svn2git

在那之后,一切都会好起来的。

关于ruby - 试图让 svn2git 在 Windows 上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10717571/

相关文章:

ruby-on-rails - DRb 的可靠性如何?

ruby - 在 ruby 中四舍五入到 0.5 或 1

git - 将当前分支重置为上一次提交后无法推送

svn - Git、Mercurial 和 Bazaar 的相对优势和劣势是什么?

.net - SharpSvn 是否可以按作者检索日志消息?

svn - SVN 中的单用户结帐

ruby-on-rails - 应用请求示例(Rails + MonogDB + Elasticsearch + Tire)

ruby - 使内存密集型程序的 ruby​​ 更快

git - 致命: git repository not found (but can go to URL) in Azure Devops?

git - 如何查看特定日期的所有提交?