fatal: unable to get credential storage lock: File exists

后端 未结 9 1736
难免孤独
难免孤独 2021-02-05 00:24

I am using git-scm and tried to push to a repository. Upon doing so, I was greeted with the following message:

fatal: unable to get credential storage lock: File         


        
9条回答
  •  逝去的感伤
    2021-02-05 00:55

    I had the same issue today. It turned out that I somehow had two configs for credential.helper. Use git config --list to check whether your have multiple credential.helper="XXX".

    In my case, I had credential.helper=manager in global config and credential.helper=store in local config.

    I removed the local one in path-to-git-project/.git/config and solved the problem.

提交回复
热议问题