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
426

被折叠的 条评论
为什么被折叠?



