$ 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/)'
这个错误让我纠结很蛮长时间
最后查了查
username : *blank*
password : *heroku auth token*
where the auth token can be retrieved by $ heroku auth:token
其中username就填写远程创建的heroku名称
密钥:
https://dashboard.heroku.com/account
在这里粘贴密钥
你也可以改指向name的远程项目
heroku git:remote -a your-name
set git remote heroku to https://git.heroku.com/your-name