git Filename too long 问题解决

  • Post author:
  • Post category:其他



目录


问题原因


解决方法启用长路径


问题原因

git 获取文件时不支持长文件导致

fatal: cannot create directory at 'examples/shardingsphere-jdbc-example/mixed-feature-example/sharding-readwrite-splitting-example/sharding-readwrite-splitting-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/sharding/readwrite/splitting/raw/config': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

解决方法启用长路径

git config core.longpaths true



版权声明:本文为lsqtzj原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。