怎样查看和修改配置Git用户名和邮箱

我们可以先查看一下git的配置列表:

git config --list

1.查看用户名和邮箱地址

git config user.name
git config user.email


2.修改全局用户名和邮箱地址:

git config --global user.name  "username111"     
git config --global user.email "email111"        


3.修改局部用户名和邮箱地址:

cd ~/you project                       
git config user.name  "username111"      
git config user.email "email111"     

猜你喜欢

转载自blog.csdn.net/qq_22182989/article/details/125293056