如何设置git remote heroku?

当我尝试使用命令heroku git:remote -a sleepy-inlet-36834

,我在终端设置了git remote heroku到https://git.heroku.com/sleepy-inlet-36834.git.然后我试着像这样设置git remote heroku.

heroku git:remote -a https://git.heroku.com/sleepy-inlet-36834.git.

那个时候我收到了类似的错误信息.

 ▸    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?

我怎么解决这个问题?

最佳答案 你可以添加远程git方式:

git remote add heroku https://git.heroku.com/sleepy-inlet-36834.git.
点赞