git config

xiaoxiao2021-02-28  39

git config --global core.whitespace  cr-at-eol

               cr-at-eol treats a carriage-return at the end of line as part of the line terminator, i.e. with it, trailing-space does not

               trigger if the character before such a carriage-return is not a whitespace (not enabled by default).

        去掉git提交时出现很多^M提示符,

 

 

git config --global core.filemode false

         git 提交时忽略文件权限,该值默认是true

 

git config --global core.autocrlf false Git可以在你提交时自动地把行结束符CRLF转换成LF,而在签出代码时把LF转换成CRLF。用core.autocrlf来打开此项功能,如果是在Windows系统上,把它设置成true,这样当签出代码时,LF会被转换成CRLF。如果是在linux下开发,则关掉此功能。

 

转载请注明原文地址: https://www.6miu.com/read-2621010.html

最新回复(0)