$ git push heroku master
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](https://devcenter.heroku.com/articles/git#http-git-authentication)
fatal: Authentication failed for '[https://git.heroku.com/secret-fortress-45076.git/](https://git.heroku.com/secret-fortress-45076.git/)'
這個(gè)錯(cuò)誤讓我糾結(jié)很蠻長(zhǎng)時(shí)間
最后查了查
username : *blank*
password : *heroku auth token*
where the auth token can be retrieved by $ heroku auth:token
其中username就填寫(xiě)遠(yuǎn)程創(chuàng)建的heroku名稱
密鑰:
https://dashboard.heroku.com/account
在這里粘貼密鑰
你也可以改指向name的遠(yuǎn)程項(xiàng)目
heroku git:remote -a your-name
set git remote heroku to https://git.heroku.com/your-name