Heroku:'https://git.heroku.com'的用户名:git

use*_*629 9 windows git heroku

在此输入图像描述

我正在尝试检查heroku上的git远程:

$ heroku auth:logout
Local credentials cleared.

$ heroku auth:login
Enter your Heroku credentials.
Email: ***@gmail.com
Password (typing will be hidden):
Authentication successful.

$ git remote
heroku
origin

$ git remote show heroku
Username for 'https://git.heroku.com':
Password for 'https://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.
fatal: Authentication failed for 'https://git.heroku.com/***-1909.git/'
Run Code Online (Sandbox Code Playgroud)

heroku文档中引用了此错误,位于https://devcenter.heroku.com/articles/git上面的屏幕截图中,但我不确定下一步该怎么做才能解决此问题.

mik*_*eym 28

这对我有用.

$ heroku auth:token

出现提示时,将结果用作密码.

  • 那是正确的答案。应该被接受 (2认同)
  • 同意@rkyr 这绝对是正确的答案。 (2认同)

小智 6

正如警告所说,您只需要执行以下操作:

heroku login

它将打开您的浏览器进行登录,根据您的身份验证输入详细信息,您就可以顺利登录了。