【问题标题】:Receiving the following error when pushing commitments to Github in R: error: cannot run rpostback-askpass: No such file or directory fatal:在 R 中将承诺推送到 Github 时收到以下错误:错误:无法运行 rpostback-askpass:没有这样的文件或目录致命:
【发布时间】:2023-01-13 07:13:44
【问题描述】:

我想将一些更改推送到我的 GitHub 存储库,但我收到以下错误,过去几个小时我一直在努力解决这个问题。

error: cannot run rpostback-askpass: No such file or directory
fatal: could not read Username for 'https://github.com': Device not configured

我刚才做的是

  • 在 Github 上打开一个新的存储库
  • 转到代码并复制 https 链接
  • 转到 R Studio > 新建项目 > 版本控制 > Git
  • 将 https 链接粘贴到存储库 URL
  • 编写一些代码并将其保存到 R 文件中
  • 选择文件 > 提交 > 并推送

我收到了这个错误,这是我以前没有得到的。 (请注意,我休息了很长时间,在此期间我没有向 Github 提交任何内容,但之前,我没有遇到过这样的错误。)

我在网上搜索了一些解决方案,有些人建议使用 SSH 密钥而不是 https,我找不到一个好的解决方案(这可能是因为我不熟悉 Github 工作流程)

因此,如果您能为我提供一个关于如何解决此问题的干净解决方案,我将不胜感激。预先感谢您的关注。

PS:如果这很重要,我正在使用 Mac。

【问题讨论】:

    标签: r git github github-for-mac


    【解决方案1】:

    这应该与缺少凭证助手有关,这意味着 Git 正在尝试从您的终端读取凭证,因为它用尽了其他选项。

    首先检查你的git config --global credential.helper

    试试install GCM,Git 凭据管理器(no longer GCM-core)。
    并在您的配置中引用它:

    git config credential.helper manager
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-09
      • 2021-05-15
      • 2014-10-31
      • 2022-01-11
      • 2021-09-19
      • 2016-06-23
      相关资源
      最近更新 更多