7

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?

asked Aug 27, 2016 at 14:34
1
  • please help me with an answer.. Commented Aug 27, 2016 at 14:55

2 Answers 2

9

you could add the remote the git way:

git remote add heroku https://git.heroku.com/sleepy-inlet-36834.git.
answered Aug 27, 2016 at 14:59
Sign up to request clarification or add additional context in comments.

2 Comments

You can run: 'git remote rm heroku' and try agian but that also may mean you have already set the git remote
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' "
2
git remote rm heroku 

Removes previous heroku

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

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

answered Mar 23, 2021 at 1:33

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.