Heroku:"https://git.heroku.com"的用户名:git [英] Heroku : Username for 'https://git.heroku.com': git

查看:70
本文介绍了Heroku:"https://git.heroku.com"的用户名:git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to check a git remote on heroku:

$ 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 ,但我不确定下一步该如何解决.

This error is referenced in the heroku docs, in the screenshot above at https://devcenter.heroku.com/articles/git , but I'm not sure what to do next to fix this.

推荐答案

这对我有用.

$ heroku auth:token

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

Use the result as the password when prompted.

这篇关于Heroku:"https://git.heroku.com"的用户名:git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆