1. 在git的命令行界面(git bash)或者Terminal 中输入
git config --get core.longpaths ,
可以看到界面中是返回了“false”;
2. 接着我们就可以输入
git config core.longpaths true设置core.longpaths这个配置项为true。
如果还是不行,就输入
git config --global core.longpaths true
然后问题“File name too long”得到解决,git bash 中git config --get core.longpaths 的返回是true.文章来源:https://www.toymoban.com/news/detail-845269.html
文章来源地址https://www.toymoban.com/news/detail-845269.html
到了这里,关于Git 遇到“File name too long”问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!