git中的换行符

git中的换行符

commit:    无转换
checkout:  无转换
git config --global core.autocrlf false

commit: 转为LF checkout: 转为CRLT git config
--global core.autocrlf true
commit: 转为LF checkout: 无转换 git config
--global core.autocrlf input

 

$ git config --global user.name "John Doe"
$ git config --global user.email "jdoe@email.com"
$ git config --global core.autocrlf false
$ git config --global core.filemode false
$ # and for fun!
$ git config --global color.ui true
posted @ 2020-08-12 10:04  fndefbwefsowpvqfx  阅读(243)  评论(0编辑  收藏  举报