我有应用程序服务器,我使用Chef +一些特别的bash脚本引导在一起。问题是,当我想在这些应用服务器上运行更新时,我得到:

19:00:28: *** Please tell me who you are.

Run

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

我真的需要在每次更新应用服务器时设置简单的git pull origin master吗?是否有任何方法来覆盖这种行为,以便在没有设置姓名和电子邮件时不会出错?


当前回答

我真的需要在每次更新应用服务器时设置简单的git pull origin master吗?是否有任何方法来覆盖这种行为,以便在没有设置姓名和电子邮件时不会出错?

它只会问一次,并确保这台机器的rsa公钥已添加到您试图提交或传递拉请求的github帐户上。

更多信息可以在这里找到

其他回答

你必须这样写你的电子邮件

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

然后:写用户名

 git config --global user.name "Your Name"

弹出窗口后将出现

写用户名和电子邮件的帐户,你想贡献

它对我有用,试试这个.. 您需要为您的终端配置远程访问。

     git config --global user.name "abc"
     git config --global user.email "abc@example.com"
git config user.email "insert github email here"
git config user.name "insert github real name here"

这对我来说很有效。

我也遇到了同样的问题,通过添加默认名称和电子邮件存储库设置解决了这个问题。

正如多伦所建议的——

如果您正在使用sourcetree: Repository -> Repository Settings -> Advanced ->取消勾选“使用全局用户设置”框。

添加默认用户名和邮箱地址。

我使用heroku cli 1. 必须使用所有用户名和用户电子邮件

$git配置——全局用户。电子邮件。登录电子邮件。

$git配置——global user.name .heroku name。

Git pull [Git url] git init Git add * 5 git commit -m "after config user.name,user email" Git push heroku master