错误:未能将一些参考文献推向' Heroku'
我创建了一个节点后端和Heroku服务器,使用CMD,使用Heroku Cli登录了Heroku,并创建了Heroku应用程序,并将我的MongoDB Uri连接到服务器,此后我使用git> git> git init ,然后我做了
git add。
git commit -m“”
然后,我使用git推动heroku master
和做heroku ps:scale web = 1
,一切正常,从那以后我就一直在使用后端。但是今天,我尝试使用git Commit -M“”
向Heroku提交新的东西,它给了我此错误消息,
Author identity unknown
*** 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 (got 'eme@PC.(none)')
然后尝试推出,这给了我这个错误:
error: src refspec master does not match any
error: failed to push some refs to 'heroku'
我尝试了某些解决方案stackoverflow帖子无济于事
i created a node backend and a heroku server, using cmd, i logged into heroku using heroku cli, and created a heroku app and connected my mongodb uri to the server, after that i initialized a git repository using git init
, and then i did git add .
the git commit -m ""
then i pushed it to heroku using git push heroku master
and did heroku ps:scale web=1
and everything worked perfectly and i have been using my backend since. but today i tried to commit something new to heroku using git commit -m ""
and it gave me this error message
Author identity unknown
*** 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 (got 'eme@PC.(none)')
i then tried to push and it gave me this error:
error: src refspec master does not match any
error: failed to push some refs to 'heroku'
i have tried the solutions of some stackoverflow post with no avail
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论