Git:“请告诉我你是谁”错误 [英] Git: "please tell me who you are" error

查看:148
本文介绍了Git:“请告诉我你是谁”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  19:00:28 :***请告诉我你是谁。 

运行

git config --global user.emailyou@example.com
git config --global user.nameYour Name

我真的需要设置它来做一个简单的 git pull origin master 每次更新应用服务器时?有没有办法覆盖这种行为,所以当没有设置名称和电子邮件时不会出错?

当我调用php脚本初始化并提交git时,它会花费很多时间。
我发现工作流程应该是:

pre $ 1.git init
2.git config user .namesomeone
3.git config user.emailsomeone@someplace.com
4.git add *
5.git commit -m一些初始化信息

如果您将[23]和1交换,配置将无法使用。



希望这会有帮助。

I have app servers that I bootstrap together using Chef + some ad-hoc bash scripts. The problem is, when I want to run an update on one of these app servers, I get:

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"

Do I really need to set this for doing a simple git pull origin master every time I update an app server? Is there anyway to override this behavior so it doesn't error out when name and email are not set?

解决方案

I spend on it lots hours when i call php script to init and commit git. And i Found the work flow should Be:

1.git init
2.git config user.name "someone"
3.git config user.email "someone@someplace.com"
4.git add *
5.git commit -m "some init msg"

If you swap [23] and 1, the config will not work at all.

Wish this will do some help.

这篇关于Git:“请告诉我你是谁”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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