在从 github 克隆项目时遇到错误:
error: unable to create file 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

执行上述命令后,再次尝试克隆项目,就可以避免文件名过长的问题了。
参考链接:https://www.php.cn/link/98d27eaef365d1710da5106ffbabf73c










