如何使用 PuTTY 克隆 heroku git 存储库



我想做什么?

我正在尝试使用 PuTTY 克隆我的 heroku git 存储库:

git clone https://git.heroku.com/projectname.git

问题出在哪里?

当我克隆 heroku 存储库时,我会收到输入用户名和密码的提示,我输入了 heroku 文档在此处所说的用户名和密码(忽略用户名并输入您的帐户 API 密钥作为密码(。但这给了我这个错误:

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: 
fatal: Authentication failed for 'https://git.heroku.com/projectname.git/'

我还尝试在 heroku 中生成 SSH 密钥并提供该密钥作为我的密码,但仍然收到相同的错误。

这对我来说都是新的,所以我很难接受它。

任何帮助将不胜感激。

Heroku 在 CLI 中内置了此功能。您可以简单地使用heroku git:clone它将自动使用.netrc中的信条。

最新更新