# 查看配置
git config -l
# 查看系统配置
git config --system -- list
# 查看用户(global)配置
git config --global --list
# 必须要配置
git config --global user.name "your name" # 配置用户名
git config --global user.email "your email" # 配置邮箱
原文:https://www.cnblogs.com/Tang0706/p/14702626.html