GitHub提交代码后不显示用户名只显示邮箱

提交完代码如图:

解决方案:

右键git bash here

输入命令如下:

git config --global user.name "username"
git config --global user.email “username@mail.com”
原文地址:https://www.cnblogs.com/longronglang/p/8337064.html