设置你的名字和邮件地址
git config --global user.name "John Doe"
git config --global user.email [email protected]
格式化与多余的空白字符
# pull 转 LF 为 CRLF
# push 转 CRLF 为 LF
git config --global core.autocrlf true
#push 转 CRLF 为 LF pull 不转换
git config --global core.autocrlf input
#push pull 都不转换
git config --global core.autocrlf false