//配置用户名和邮箱(全局)
$ git config --global user.name "MapSheep"
$ git config --global user.email "MapSheep"
C:\Users\用户名\.gitconfig 文件
//配置用户名和邮箱(在某个特定的项目中)
$ git config user.name "MapSheep_Pro"
$ git config user.email "MapSheep_Pro"
原文:https://www.cnblogs.com/Twittery/p/14224744.html