git在添加文件时出现的错误

git init初始化仓库后

 

git add .  添加当前目录所有文件出现以下错误

1.第一种

warning: LF will be replaced by CRLF in .bomr/bomr.yaml.
The file will have its original line endings in your working directory.

解决方法:

git config --global core.autocrlf false

 

2.第二种

error: open("spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/resources/org/springframework/boot/gradle/plugin/DependencyManagementPluginActionIntegrationTests-helpfulErrorWhenVersionlessDependencyFailsToResolve.gradle"): Filename too long

解决方法:

 git config --global core.longpaths true



posted on 2020-03-06 22:58  XZhe  阅读(506)  评论(0编辑  收藏  举报