当前位置:   article > 正文

使用git拉取github源代码时报错,因源代码中有文件名太长导致_you can inspect what checked

you can inspect what checked

报错信息如下:

error: unable to create file apm-sniffer/apm-sdk-plugin/spring-plugins/spring-cloud/netflix-plugins/spring-cloud-feign-1.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/spring/cloud/netflix/feign/v11/define/NetflixFeignInstrumentation.java: Filename too long
Checking out files: 100% (2137/2137), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

 

关键字: Filename too long  

文件名太长

运行如下命令解决再重新git clone项目就好了:

git config --system core.longpaths true

想看具体原因可以到这里:

https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号