Migrating SVN (to Git) branches with white space in the names

孤人 提交于 2019-11-28 09:05:47

问题


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)

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).

Someone has a clue how to solve it?

Git error: command returned error: 128

System Info:

Win 7 64x

git version 1.9.5.msysgit.0

Thanks!


回答1:


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

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



来源:https://stackoverflow.com/questions/33477630/migrating-svn-to-git-branches-with-white-space-in-the-names

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!