查看用户名:git config user.name.切换用户:git config --global user.name "xxx"切换邮箱:git config --global user.email "xxx"。切换成功。