8
3

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.

git push heroku masterの認証エラー

Last updated at Posted at 2020-11-01

エラー内容

gitにpushした後、herokuにあげようとコマンド打ったら以下の認証系のエラーが発生。

$ git push heroku master
Username for 'https://git.heroku.com': yuichisan171
Password for 'https://yuichisan171@git.heroku.com': 
remote: !	WARNING:
remote: !	Do not authenticate with username and password using git.
remote: !	Run `heroku login` to update your credentials, then retry the git command.
remote: !	See documentation for details: https://devcenter.heroku.com/articles/git#http-git-authentication
fatal: Authentication failed for 'https://git.heroku.com/musicquest.git/'

password忘れたせいか進まない...

解決

herokuにログインするコマンドをぶち込みます。

$ heroku login
 ›   Warning: heroku update available from 7.41.1 to 7.47.0.
heroku: Press any key to open up the browser to login or q to exit: 
Opening browser to https://cli-auth.heroku.com/auth/cli/browser/ab6b9c8d-641a-47a2-80e1-08d519468767?requestor=SFMyNTY.g3QAAAACZAAEZGF0YW0AAAANMTI0LjM1LjY3LjIzNGQABnNpZ25lZG4GADZ5IoR1AQ.g7NF0zMSV_VBECPITWE6xcIYOPKq0qt_RCEoaKDG0os
Logging in... done
Logged in as <メールアドレス>

herokuにpushします

$ git push heroku master
Enumerating objects: 92, done.
Counting objects: 100% (92/92), done.
<以下略>

お、うまく行きましたね!
同時にパスワード管理超大事っすね。

#参考情報
Heroku - git push heroku master 認証エラー

8
3
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
8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?