Migrating SVN (to Git) branches with white space i

2019-01-26 20:02发布

问题:

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