【问题标题】:how to clone heroku git repository with PuTTY如何使用 PuTTY 克隆 heroku git 存储库
【发布时间】:2018-10-19 01:31:14
【问题描述】:

我想做什么?

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

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

有什么问题?

当我克隆 heroku 存储库时,系统会提示我输入用户名和密码,因为 heroku 文档在here 中说(忽略用户名并输入您的帐户 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 密钥并提供该密钥作为我的密码,但仍然遇到相同的错误。

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

任何帮助将不胜感激。

【问题讨论】:

    标签: git heroku putty


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2017-03-04
      • 2020-06-13
      • 2013-11-04
      • 2017-08-07
      • 1970-01-01
      • 2011-05-18
      • 2012-09-03
      • 2016-08-15
      • 2013-07-14
      相关资源
      最近更新 更多