【问题标题】:git credential-cache/socket operation not permitted不允许 git credential-cache/socket 操作
【发布时间】:2018-08-03 03:40:54
【问题描述】:

我 git 将我自己的 repo 克隆到服务器上。每当我执行 git push、git pull 或其他操作时,它都会不断询问我的用户名和密码。因此,我启用了全局凭证存储,并且确实在 ~/.gitconfig 下找到了所有设置。它应该在我第一次输入时缓存我的用户名和密码,但它说

fatal: unable to bind to '/home/<myusername>/.git-credential-cache/socket': Operation not permitted

fatal: cache daemon did not start:

我没有 sudo 到服务器。我该如何解决这个问题?

【问题讨论】:

    标签: git credentials


    【解决方案1】:

    如果这不是permission issue,您应该尝试另一个凭据助手,例如GNOME Keyring

    sudo apt install libgnome-keyring-dev
    git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
    

    由于您没有 sudo,请先检查 libgnome-keyring 是否已经安装。 (which gnome-keyring)

    【讨论】:

      猜你喜欢
      • 2023-03-20
      • 2022-11-09
      • 2020-05-21
      • 2012-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-03
      • 2021-02-10
      相关资源
      最近更新 更多