2017-08-13 61 views
-1

我有这样的错误内容时发生,当我试图执行此命令他们可以帮我解决离子的这个错误吗? [ERROR]的错误而运行git提交-m “初始提交” --no-GPG-SIGN(退出代码128)

发生该错误

离子开始对myApp标签

ERROR 128

以下是错误的文字:

*** Please tell me who you are. 

Run 

git config --global user.email "[email protected]" 
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 
+0

此无关与JavaScript或离子框架。这是一个混帐问题。答案在你的截图中。你必须运行'git config'来设置你的名字和邮件。请参阅[config username](https://help.github.com/articles/setting-your-username-in-git/)和[config email](https://help.github.com/articles/setting-your -commit-email-address-in-git /)docs on GitHub。 – styfle

+0

太棒了!非常感谢你的帮助! – Jorge1023

+0

我加了一个更详细的答案。如果解决了您的问题,请点击对勾将其标记为接受的答案。 – styfle

回答

2

你命令git commit会将更改提交到git存储库。

为了进行提交,git需要知道您的姓名和电子邮件地址。毕竟,SCM工具的目的不仅仅是跟踪代码更改,而且是谁做出了更改!

你的问题的答案是在你的屏幕截图。

  • git config --global user.name "My Name"来设置你的名字
  • git config --global user.email "[email protected]"设置你的电子邮件

在Github上查看config usernameconfig email文档或此相关的问题:

Why Git is not allowing me to commit even after configuration?