Warm tip: This article is reproduced from serverfault.com, please click

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

发布于 2015-11-02 12:30:46

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!

Questioner
xpto
Viewed
0
32.3k 2020-05-06 15:16:00

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