方法一:
1.右键【Git Bash Here】打开Git命令行
2.输入命令:git config --list
查看全局配置,最下面两行就是你的当前名字和邮箱
user.name=****
user.email=****
3.移除全局名字和邮箱
git config --global --unset user.name
git config --global --unset user.email
4.在对应的项目下执行
git config user.name 'AnotherName'
git config user.email 'AnotherEmail'
5.使用git config --list
查看当前项目邮箱和名字
方法二:
进入需要单独设置的项目下,找到隐藏的.git
文件,编辑里面的config配置文件
[user]
name = ****
email =*****@qq.com