vscode: make sure you configure your user.name and user.email in git

一、问题描述

使用VScode编辑代码后,Push到云端报错:Make sure you configure your "user.name" and "user.email" in git

vscode: make sure you configure your user.name and user.email in git_第1张图片

二、解决方案

解决步骤:

1.打开Git Bash:

2.输入命令:

git config --global user.name "xxx"  # 配置用户名
git config --global user.email "[email protected]"  # 配置邮箱

vscode: make sure you configure your user.name and user.email in git_第2张图片

执行之后,C:\Users\对应用户目录下会生成.gitconfig文件:

vscode: make sure you configure your user.name and user.email in git_第3张图片

你可能感兴趣的:(开发问题,#,Git相关问题,vscode,git)