Firstly - Check Check if U have global .gitconfig file 检查是否有全局 .gitconfig 文件 Usually global .gitconfig will be created in directory /Users/yourAccountName 通常情况下全局的.gitconfig文件会在文件夹 /Users/你的用户名下 Such as mine, it is being /Users/robingao 我的是/Users/rob