无法将我的Heroku应用与命令行接口(CLI)连接
我确实在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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在运行的命令将遥控器添加到存储库的已克隆副本中,而错误消息则表明您根本不在存储库中(没有
.git> .git
文件夹)。如果您已经有一个尚未配置Heroku
远程远程的本地克隆,则使用此命令。如果您还没有存储库,请克隆一个:
请参阅
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 aheroku
remote for you to push to.If you don't have a of your repo yet, then clone one instead:
See https://devcenter.heroku.com/articles/git-clone-heroku-app