py-py’s blog

何か書くよ

Herokuを使うときに参考になった記事

Herokuにpush時にdoes not appear to be a git repository出た時の対処

コンソール上で

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.

と怒られた。

対処法

以下のコマンドを入力

git remote add heroku https://git.heroku.com/Herokuのアプリ名.git

入力後にconfigを確認すると

less .git/config

[remote "heroku"]

と追記されている。

確認できたら

git push heroku master