【问题标题】:Migrating SVN (to Git) branches with white space in the names迁移名称中带有空格的 SVN(到 Git)分支
【发布时间】:2016-02-02 08:05:21
【问题描述】:

我在将 SVN 迁移到 Git 时遇到了一个常见问题,基本上我有一些用空格命名的分支(在 SVN 上)。有没有办法解决或解决它?

我找到了一些“解决方案”,但没有一个对我有用。

我有一个粗鲁而庞大的存储库要迁移,并且该命令已经迁移了 90% 以上(花了一个多星期的时间)。

有人知道如何解决吗?

Git 错误: command returned error: 128

系统信息:

赢 7 64 倍

git 版本 1.9.5.msysgit.0

谢谢!

【问题讨论】:

  • 与您的问题无关,但 1.9.5 远非最新版本。最新版本是 2.6.2,从这里获取:git-scm.com/download
  • 你是如何迁移的? git svn clone? svn2git?您遇到了哪些问题?
  • 你的 SVN 版本是多少? [answers.atlassian.com/questions/309062/answers/3039270 这些家伙] 提到svn2git 的 SVN
  • @eckes 我现在更新为git version 2.6.2.windows.1,我会检查的。关于命令,是那个:git svn clone --stdlayout --authors-file=authors.txt https://my.svn.repo local-repo-folder
  • @eckes 我在 svn = 1.7.14, git = 1.8.3.1 和 svn2git = 2.3.2 也看到了这个问题

标签: git svn migration branch


【解决方案1】:

打开文件git-repo-name/.git/packed-refs 并将%20 替换为空格。

Git 版本:git version 2.6.2.windows.1(通过 git bash 赢得 7 64x)。

【讨论】:

  • 这似乎并不能解决问题,确切地说; git 吐出“警告:忽略名称损坏的 refs/remotes/svn/xxx 的 ref”;所以看起来空间中有空格的分支只是被忽略了,因为这在 git 中是无效的。
猜你喜欢
  • 2018-11-17
  • 1970-01-01
  • 2020-01-19
  • 1970-01-01
  • 1970-01-01
  • 2016-11-24
  • 1970-01-01
  • 2016-08-18
  • 1970-01-01
相关资源
最近更新 更多