Skip to content
返回

Git 初次安装需要进行的一些必要配置

设置你的名字和邮件地址

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


上一篇
Vim 粘贴文本格式错乱