error:
Password:
remote: Counting objects: 3622, done.
remote: Compressing objects: 100% (2017/2017), done.
remote: Total 3622 (delta 1466), reused 3549 (delta 1429)
Receiving objects: 100% (3622/3622), 181.19 MiB | 10.96 MiB/s, done.
Resolving deltas: 100% (1466/1466), done.
error: invalid path 'server/log/gunicorn_supervisor.'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
error: invalid path 'server/log/gunicorn_supervisor.'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
method .1(invalid)
this was due to long file names and doing a simple config as below resolved it
git config --system core.longpaths true
method.2
有文件使用了window的保留字(invalid)
git config --no-global core.protectNTFS false
make difference
git config --global core.protectNTFS false
本文讲述了如何修复Git clone过程中遇到的'invalidpath'错误,通过设置`longpathstrue`和调整`protectNTFS`配置来处理长文件名和保留字问题。方法包括全局和系统级别的配置,确保正确检出工作目录。
397

被折叠的 条评论
为什么被折叠?



