对于git bash用户使用命令:

git config --global core.autocrlf false

为了保证文件的换行符是以安全的方法,避免windows与unix的换行符混用的情况,最好也加上这么一句

git config --global core.safecrlf true

对于使用TortoiseGit的同学来说可以“快捷菜单”->“Git",将autocrlf去掉勾选

git 自动转换行符冲突

 

Eclipse在  首选项—>小组—> Git—>  配置—> open 

打开.gitconfig 文件 更改autocrlf为 false

相关文章:

  • 2022-12-23
  • 2021-08-17
  • 2021-12-28
  • 2022-02-08
  • 2021-10-11
  • 2022-01-09
  • 2022-01-16
猜你喜欢
  • 2022-12-23
  • 2021-10-21
  • 2021-12-04
  • 2021-10-29
  • 2021-04-03
  • 2021-08-24
  • 2022-12-23
相关资源
相似解决方案