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