6

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?

1
  • please help me with an answer..
    – Andrea
    Aug 27, 2016 at 14:55

2 Answers 2

8

you could add the remote the git way:

git remote add heroku https://git.heroku.com/sleepy-inlet-36834.git.
2
  • You can run: 'git remote rm heroku' and try agian but that also may mean you have already set the git remote Aug 27, 2016 at 15:12
  • I tried again after run "git remote rm heroku" and push the codes using "git push heroku master". I got an error "! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git.heroku.com/sleepy-inlet-36834.git' "
    – Andrea
    Aug 27, 2016 at 17:31
1
git remote rm heroku     

Removes previous heroku

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.