0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Heroku&Git】Herokuアプリをリモートリポジトリとして登録・変更・削除する方法

Posted at

プログラミング勉強日記

2021年2月11日
最初に初めてHerokuでデプロイしようとしたときに、以下のようなエラーが出た。これは、リモートリポジトリにHerokuが追加されていなかったため、リモートリポジトリを登録することで解決できた。

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

登録されているリポジトリの確認

$ git remote -v

登録する方法

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

変更する方法

$ git remote set-url heroku https://git.heroku.com/アプリ名.git

削除する方法

$ git remote rm heroku

参考文献

herokuでデプロイ初
STEP2-10.Herokuで公開してみよう

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?