從 GitHub 克隆一個項目下發出現了錯誤:
error: unable to createfile spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/resources/org/springframework/boot/gradle/plugin/JavaPluginActionIntegrationTests-javaCompileTasksCanOverrideDefaultParametersCompilerFlag.gradle: Filename too long
Git 可以創建 4096 長度的文件名,然而在 windows 最多是260。
因此有時候在項目中你可能會遇到文件名過長的問題。
可以執行下面的命令進行全局修改:
git config --global core.longpaths true
然後再次執行克隆,就可以避免這個長文件名的問題了。