HerokuでgitpushしようとするとPermission denied (publickey).になる
読んだもの
学んだこと
会社でつかっていたリポジトリをクローンして herokuに変更をpushしようとしたところ、下記のエラーになった。
$ git push heroku master Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.
会社のPCではpublic keyを登録していたが、自宅PCでは登録していなかったのが原因。
$ heroku keys:add
上記コマンドでpublic keyを登録すればOK.