1 设置user.name和user.email
git config --global user.name "your_name"
git config --global user.email "your_email"
2 配置行尾和颜色
git config --global core.autocrlf true
git config --global core.autocrlf input
git config --global color.ui auto
3 USEFUL SETTINGS
优先级:local > global > system