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"

 

posted @ 2018-11-22 15:38  全玉  阅读(491)  评论(0编辑  收藏  举报