$ git config user.name 查看用户名
$ git config user.email 查看邮箱
$ git config --global user.name "username" 修改用户名
$ git config --global user.email "email" 修改邮箱
$ git config user.name 查看用户名
$ git config user.email 查看邮箱
$ git config --global user.name "username" 修改用户名
$ git config --global user.email "email" 修改邮箱
转载于:https://www.cnblogs.com/liuq1991/p/9070920.html