一、问题描述
使用VScode编辑代码后,Push到云端报错:Make sure you configure your "user.name" and "user.email" in git
二、解决方案
解决步骤:
1.打开Git Bash:
2.输入命令:
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxxxxx@xx.com" # 配置邮箱
执行之后,C:\Users\
对应用户目录下会生成.gitconfig
文件: