2016-08-27 11 views
2

私がコマンドheroku git:remote -a sleepy-inlet-36834 を使用しようとしているとき、私はset git remote heroku to https://git.heroku.com/sleepy-inlet-36834.gitを端末に持っています。それで私はgit remote herokuをこのように設定しようとしました。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? 

どうすればこの問題を解決できますか?

+0

答えで私を助けてください.. – Andrea

答えて

0

はgit道リモートを追加することができます。

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

それはエラーを示し、「致命的なの:リモートHerokuのはすでに存在しています。」 – Andrea

+0

「git remote rm heroku」を実行してagianを試すこともできますが、これは既にgit remoteを設定している可能性があります。 –

+0

「git remote rm heroku」を実行してからもう一度試してみて、「git push heroku master」を使用してコードを押します。私はエラー "![リモート拒否]マスター - >マスター(事前受信フックが拒否されました) エラー:いくつかの参照を 'https://git.heroku.com/sleepy-inlet-36834.git'にプッシュするのに失敗しました" – Andrea

関連する問題