Search code examples
gitsvnmigrationbranch

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


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.

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!


Solution

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

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