/ / herokuを押すことはできません - ruby​​-on-rails、git、heroku

herokuを押すことはできません - ruby​​-on-rails、git、heroku

私はちょうどgithubに私のリポジトリの一つをクローンしました、私はいくつかの変更を加えた、私はherokuアプリケーションでそれを送信したいと思います。しかし、私は git push heroku master、私は得る:

fatal: "heroku" does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

それを解決するために私は何ができますか?

回答:

回答№1は2

これは、リモコンという名前の英雄がないからです。 git remote -v。私の "example"アプリでは、次のように表示されます:

$ git remote -v
heroku git@heroku.com:example.git (fetch)
heroku git@heroku.com:example.git (push)

存在しない場合は、次のコマンドでリモートを追加できます。

git remote add heroku git@heroku.com:example.git

ここでexampleはあなたのherokuアプリの名前です。


回答№2の場合は1

あなたがする前に

$ git push heroku master

herokuをセットアップする必要があります。 Heroku入門。ヒロクをセットアップしてログインしたら、あなたのアプリを作成してください。

git remoteが追加されていることを確認する

$ git remote -v

それはリモートの名前を記載する必要があります heroku。そうであれば、エラー heroku" does not appear to be a git repository 去る


回答№3の場合は0

チュートリアルの手順に従っている場合は、もう一度ログインするだけです。

cmd "heroke login"