Andrea
Andrea

Reputation: 179

How to set git remote 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?

Upvotes: 7

Views: 6317

Answers (2)

UndenCem
UndenCem

Reputation: 21

git remote rm heroku     

Removes previous heroku

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

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

Upvotes: 2

Niles Tanner
Niles Tanner

Reputation: 4041

you could add the remote the git way:

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

Upvotes: 9

Related Questions