git如何修改提交的用户名和邮箱

修改当前提交的用户名和邮箱(未push到远程仓库)

1.修改当前Project

git config user.name 你的用户名

  

git config user.email 你的邮箱名

 

 

2.修改全局

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

  

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

 

3.查看当前提交的用户和邮箱

git config  --global user.name

  

git config  --global user.email;

 

完成!

 

posted @ 2021-04-01 09:51  Hello小码  阅读(632)  评论(0)    收藏  举报