git config

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下开发,则关掉此功能。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值