0%

git-config

1
2
3
4
5
6
7
8
9
10
11
# 设置你的名字和邮件地址
git config --global user.name $USERNAME
git config --global user.email $EMAIL

# 设置文本编辑器
git config --global core.editor vim

# 如果为 true, 则在检出时自动将行结束符转换成 CRLF (回车换行)
# 如果为 input, 则在提交时自动将行结束符转换为 LF, 检出时不转换
# 如果为 false, 则保留行结束符原来的格式
git config --global core.autocrlf true

1. Resource