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 即可!

三、实验截图

猜你喜欢

转载自www.cnblogs.com/gzbit-zxx/p/10990031.html