Git 5 -- 用户名与邮箱

1. 查看当前工程的用户名与邮箱

git config user.name

git config user.email

2. 修改当前工程的用户名与邮箱

git config user.name 你的目标用户名

git config user.email 你的目标邮箱名

3.修改全局的用户名与邮箱

git config  --global user.name 你的目标用户名

git config  --global user.email 你的目标邮箱名

猜你喜欢

转载自blog.csdn.net/c123m/article/details/85139285