在项目目录命令行查看当前用户名
git config user.name
修改用户名为新的用户名
git config user.name "新的用户名"
修改全局用户名
git config --global user.name "新的用户名"
在项目目录命令行查看当前用户名
git config user.name
修改用户名为新的用户名
git config user.name "新的用户名"
修改全局用户名
git config --global user.name "新的用户名"