idea中修改git提交代码的用户名

 修改当前项目的用户名和邮箱地址:

git config user.name "username"

git config user.email "email" 
修改全局用户名和邮箱地址:

git config --global user.name "username"

git config --global user.email "email"
查看git用户名和邮箱地址命令:

git config user.name

git config user.email
原文地址:https://www.cnblogs.com/llcc/p/12890220.html