当前位置:   article > 正文

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

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

在这里插入图片描述

二、解决方案

解决步骤:

1.打开Git Bash:

在这里插入图片描述

2.输入命令:

git config --global user.name "xxx"  # 配置用户名
git config --global user.email "xxxxxx@xx.com"  # 配置邮箱
  • 1
  • 2

在这里插入图片描述

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

在这里插入图片描述

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号