unable to checkout working tree

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

参考文档

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值