ᕕ(ᐛ)ᕗ 为知

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

设置你的名字和邮件地址

1git config --global user.name "John Doe" 2git config --global user.email johndoe@example.com

格式化与多余的空白字符

1# pull 转 LF 为 CRLF 2# push 转 CRLF 为 LF 3git config --global core.autocrlf true 4 5#push 转 CRLF 为 LF pull 不转换 6git config --global core.autocrlf input 7 8#push pull 都不转换 9git config --global core.autocrlf false