修改git代码提交者的姓名 一、打开git-bash或者mac终端窗口 输入 git config user.name 查看当前使用用户名 输入 git config --global user.name “需要修改的用户名”