1. ホーム
  2. heroku

[解決済み] 'heroku' は git リポジトリでないようです。

2022-02-22 02:53:09

質問

Herokuにアプリをプッシュしようとすると、次のような応答が返ってきます。

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.

heroku keys:add」を試してみましたが、やはり同じ結果でした。 GitHub のアカウント用の ssh 鍵はすでに持っています。

どうすればいいですか?

HerokuアプリをGitリモートとして追加するには、次のように実行します。 heroku git:remote -a yourapp .

出典 Gitを使ったデプロイメント