报错如下
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
如图
原因
文件名不兼容问题
某些文件名在Windows上是不允许的,例如包含特殊字符或与系统保留名称冲突的文件名(如 CON,PRN,AUX,NUL 等)。
解决
# 忽略路径中的转义字符
git config --global core.protectNTFS false
# 禁用换行符转换
git config --global core.autocrlf false
# 中文文件名,乱码问题。设为false的话,就不会对0x80以上的字符进行quot
git config --global core.quotepath false
只能下载部分,后续优化…