错误:未能将一些参考文献推向' Heroku'

发布于 2025-01-21 18:37:16 字数 1021 浏览 1 评论 0原文

我创建了一个节点后端和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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文