Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set git remote heroku?

Tags:

github

heroku

When I'm trying to use the command heroku git:remote -a sleepy-inlet-36834 ,I got set git remote heroku to https://git.heroku.com/sleepy-inlet-36834.git in terminal. Then I tried to set the git remote heroku like this.

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

That time I got an error message something like this.

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

How can I solve this?

like image 475
Andrea Avatar asked Aug 27 '16 14:08

Andrea


2 Answers

you could add the remote the git way:

git remote add heroku https://git.heroku.com/sleepy-inlet-36834.git.
like image 68
Niles Tanner Avatar answered Nov 15 '22 10:11

Niles Tanner


git remote rm heroku     

Removes previous heroku

git remote add heroku https://example-example.git 

Sets git remote heroku to https://example-example.git

like image 39
UndenCem Avatar answered Nov 15 '22 08:11

UndenCem