git错误“请告诉我你是谁。”和Heroku [英] git error "Please tell me who you are." and Heroku
问题描述
我在分支大师
中工作,并提交给Git存储库。一切正常。我将新应用程序连接到Heroku上的此存储库。
我曾经承诺Heroku和Git。一切再次正常工作(除了我不能运行数据库:在Heroku上迁移,但这是另一个问题...)。在我上次提交后,我运行 git status
并收到:在分支主机上。你的分支是'origin / master'的最新版本。
今天我对代码做了一些修改,但突然之间我不能提交 - 收到错误请告诉我你是谁。与以前提交的唯一区别是,如果它有任何重要性,那么就会进行迁移。
当我运行 git config --global --get user.email
命令时,我得到一个空行。
为什么我突然失去与git的连接? >全局配置中的名称参数为空。可能你已经执行了类似的操作,但是已经删除了这些值:
git config --global user.name
git config --global user.email
只需再次输入命令即可:
git config --global user.nameYour Name
git config --global user.emailyour @ email .com
其中 your@email.com
是你的github电子邮件。
注意:你可以绕过github而无法使用heroku,因为heroku本身也有git repo 。
I was working in branch master
, and committing to Git repository. Everything worked fine. I connected new app to this repository on Heroku.
I was committing to both Heroku and Git. Everything worked fine again (except I cannot run db:migrate on Heroku but that is another question...). After my last commit I run git status
and received: On branch master. Your branch is up-to-date with 'origin/master'.
Today I made some changes in my code, but suddenly I cannot commit - received error "Please tell me who you are." The only difference from previous commits is that had a migration, if it is of any importance.
When I run git config --global --get user.email
command I get an empty line in return.
Why have I suddenly lost connection to git?
It seems that your email
, and name
parameters in global config are empty. Probably you have executed something like this, that has dropped the values:
git config --global user.name ""
git config --global user.email ""
Just fill them with commands again:
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
Where your@email.com
is your github email.
NOTE: You can push out of hand to heroku, bypassing the github, since heroku also have git repo itself.
这篇关于git错误“请告诉我你是谁。”和Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!