迁移名称中带有空格的 SVN(到 Git)分支 [英] Migrating SVN (to Git) branches with white space in the names

查看:41
本文介绍了迁移名称中带有空格的 SVN(到 Git)分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm facing a common problem migrating SVN to Git, basically I have some branches (on SVN) named with white spaces. Is there a way to solve or workaround it?

我找到了一些解决方案";但它们都不适合我.

I've found some "solutions" but none of them worked for me.

  • For tags with white spaces: https://stackoverflow.com/a/11365319/575643
  • User svn2git do not worked also
  • git gc just compress the data (basically)

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

I have a rude and massive repository to migrate and the command already migrated more then 90% of them (it took more then a week).

有人知道如何解决吗?

Git 错误:命令返回错误:128

系统信息:

赢 7 64 倍

git 版本 1.9.5.msysgit.0

git version 1.9.5.msysgit.0

谢谢!

推荐答案

打开文件git-repo-name/.git/packed-refs 替换%20 用于空格.

Open the file git-repo-name/.git/packed-refs and replace the %20 for spaces.

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

Git version: git version 2.6.2.windows.1 (win 7 64x via git bash).

这篇关于迁移名称中带有空格的 SVN(到 Git)分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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