1.首先查看有没有配置user.name和user.email(没输出则没有)
git config user.name
git config user.email
2.设置user.name和user.email
git config --global user.name "your_username" # 配置用户名
git config --global user.email "your_email" # 配置邮箱
git config user.name
git config user.email
git config --global user.name "your_username" # 配置用户名
git config --global user.email "your_email" # 配置邮箱
道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。