【问题标题】:Cannot push to Bitbucket after installing git-lfs安装 git-lfs 后无法推送到 Bitbucket
【发布时间】:2017-06-14 23:58:21
【问题描述】:

安装git lfs后,git在尝试执行时不断询问我的密码:

git push origin master

就好像git 陷入了无限循环:没有错误消息,什么都没有,但我被一遍又一遍地提示输入密码。该 repo 是通过 HTTPS 克隆的。

最接近的问题似乎是:

Cannot push to Bitbucket via https anymore: git returns fatal error

根据该问题的答案,我的选择是:

  • 使用 SSH,
  • 将我的密码添加到 URL。

(关于 git 版本的其他答案不算在内:我正在使用 git 2.7.4 和 git-lfs/2.1.1(GitHub;linux amd64;go 1.8.1)所以这不是我的 git太旧了。)

还有其他方法可以解决这个问题吗?

【问题讨论】:

    标签: git authentication bitbucket git-lfs


    【解决方案1】:

    是的,缓存密码解决了这个问题:

    git config --global credential.helper 'cache --timeout=3600'
    

    (虽然我不确定这不是 git 或 git-lfs 中的错误。)

    我在 git lfs stuck in push from last week [FIXED] 找到了这个答案,而不是在 Stackoverflow 上,这就是为什么我以问答形式在这里发布它的原因。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-04
      • 2013-04-11
      • 2020-11-29
      • 2018-11-10
      • 2022-01-20
      • 2019-03-18
      • 1970-01-01
      相关资源
      最近更新 更多