我正在尝试检查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/'
这个错误在heroku文档中引用,在上面的屏幕截图中显示为https://devcenter.heroku.com/articles/git,但我不知道接下来要做什么来解决这个问题.
这对我有用.
$heroku auth:token
出现提示时,将结果用作密码.