git用户名和邮箱配置

1. 设置全局用户名和邮箱

git config --global user.name "xxx"
git config --global user.email "xxx@xx.com"

2. 清除全局用户名和邮箱

git config --unset --global user.name
git config --unset --global user.email

3. 设置本项目的用户名和邮箱

git config user.name "xxxx"
git config user.email "xxx@xx.com"
原文地址:https://www.cnblogs.com/mengff/p/10001409.html