1.window下的CRLF與Linux下的LF
提交時轉換爲LF,檢出時轉換爲CRLF
git config --global core.autocrlf true
提交時轉換爲LF,檢出時不轉換
git config --global core.autocrlf input
提交檢出均不轉換
git config --global core.autocrlf false
拒絕提交包含混合換行符的文件
git config --global core.safecrlf true
允許提交包含混合換行符的文件
git config --global core.safecrlf false
提交包含混合換行符的文件時給出警告
git config --global core.safecrlf warn
2.別名配置
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.br branch