1 zongz@DESKTOP-8FJ0LEC MINGW64 /e/CodeFile/CFile 2 $ git clone https://gitlab.com/padavan-ng/padavan-ng.git 3 Cloning into 'padavan-ng'... 4 remote: Enumerating objects: 119768, done. 5 remote: Total 119768 (delta 0), reused 0 (delta 0), pack-reused 119768 6 Receiving objects: 100% (119768/119768), 352.30 MiB | 3.24 MiB/s, done. 7 Resolving deltas: 100% (31642/31642), done. 8 error: invalid path 'trunk/user/ipset/ipset-6.x/tests/bitmap:ip.t' 9 fatal: unable to checkout working tree 10 warning: Clone succeeded, but checkout failed. 11 You can inspect what was checked out with 'git status' 12 and retry with 'git restore --source=HEAD :/'
文件名含有冒號:, 憨憨Windows不支持,需要對git作如下配置:
1 # 忽略路徑中的轉義字符 2 git config --global core.protectNTFS false 3 # 禁用換行符轉換 4 git config --global core.autocrlf false 5 # 中文文件名,亂碼問題。設為false的話,就不會對0x80以上的字符進行quot 6 git config --global core.quotepath false