无法将我的Heroku应用与命令行接口(CLI)连接

发布于 2025-02-09 11:45:40 字数 428 浏览 1 评论 0 原文

我确实在Heroku服务器上有该应用程序,但是我无法与Heroku命令行连接到它,

这是我在PowerShell Heroku git中运行的命令

:远程-A todo -dennis

这是输出

Error: Command failed: git remote
fatal: not a git repository (or any of the parent directories): .git

I do have the app on Heroku server but I cannot connect to it with Heroku Command Line

This is the command I am running in PowerShell

heroku git:remote -a todo-dennis

This is the output

Error: Command failed: git remote
fatal: not a git repository (or any of the parent directories): .git

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

末骤雨初歇 2025-02-16 11:45:40

您正在运行的命令将遥控器添加到存储库的已克隆副本中,而错误消息则表明您根本不在存储库中(没有 .git> .git 文件夹)。如果您已经有一个尚未配置 Heroku 远程远程的本地克隆,则使用此命令。

如果您还没有存储库,请克隆一个:

heroku git:clone -a todo-dennis

请参阅

The command you're running adds a remote to an already cloned copy of your repository, while your error message indicates that you are not in a repository at all (there is no .git folder). You would use this command if you already have a local clone that isn't yet configured with a heroku remote for you to push to.

If you don't have a of your repo yet, then clone one instead:

heroku git:clone -a todo-dennis

See https://devcenter.heroku.com/articles/git-clone-heroku-app

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文