援助git bash提交错误 [英] Aid with git bash commit error

查看:65
本文介绍了援助git bash提交错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在项目中包括git,但是当我尝试提交时,出现此错误,我是新手,不知道它指的是什么或如何解决.

I am trying to practice including git in projects but when I try to make a commit i get this error I am new and do not know what it is referring to or how to fix it.

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'john@LAPTOP-8GKLVF71.(none)')

推荐答案

首次安装git时,必须设置用户名和电子邮件地址. Git将这些用于提交消息等.

When you first install git, you have to set your user name and email address. Git uses these for commit messages etc.

如果您仔细阅读了该错误,则git会告诉您该怎么做.

If you carefully read the error, git is telling you what to do.

在命令行上,运行以下命令:

On the command line, run the following commands:

 git config --"your email address"  
 git config --"your name"

这篇关于援助git bash提交错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆