如何设置git远程heroku?

And*_*rea 5 github heroku

当我尝试使用命令时heroku git:remote -a sleepy-inlet-36834 ,我进入set git remote heroku to https://git.heroku.com/sleepy-inlet-36834.git了终端。然后我尝试像这样设置 git remote heroku。

heroku git:remote -a https://git.heroku.com/sleepy-inlet-36834.git.
Run Code Online (Sandbox Code Playgroud)

那一次我收到了类似这样的错误消息。

 ?    The requested API endpoint was not found. Are you using the right HTTP
 ?    verb (i.e. `GET` vs. `POST`), and did you specify your intended version
 ?    with the `Accept` header?
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

Nil*_*ner 9

你可以通过 git 方式添加远程:

git remote add heroku https://git.heroku.com/sleepy-inlet-36834.git.
Run Code Online (Sandbox Code Playgroud)