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

打开C盘里的 .gitconfig文件

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

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/yang-xiansen/p/10582602.html