![cfda7f1173776d55bf6ea6ee6cb621c0.png](https://i-blog.csdnimg.cn/blog_migrate/21af0dd1f66c5de738050066400023af.jpeg)
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/robingao(Just because my account name of my MBP is robingao)
Secondly - Show the code
- If not exist, it just indecated that you had never config global git configuration.But it happened rarely.
- 如果不存在,说明你从来没有配置过git的全局配置。但,这种情况极少
- U can just created it by opening your terminal in spotlight(shotcut: ⌘ + space), and copy and run(just tap ↩︎ button)