Git error: unable to create file xxx: Filename too long

Posted gzbit-zxx

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git error: unable to create file xxx: Filename too long相关的知识,希望对你有一定的参考价值。

一、问题描述

  在使用 git 时,提示

error: unable to create file xxx: Filename too long
error: unable to create file xxx: Filename too long
error: unable to create file xxx: Filename too long
error: unable to create file xxx: Filename too long
error: unable to create file xxxx: Filename too long
error: unable to create xxxx: Filename too long

二、解决方案

  在该 Clone 的路径下,运行该命令:

 git config --global core.longpaths true

删除老的 Clone 项目,重新 Clone 即可!

三、实验截图

技术图片

以上是关于Git error: unable to create file xxx: Filename too long的主要内容,如果未能解决你的问题,请参考以下文章