fatal: unable to get credential storage lock: File exists

后端 未结 9 1742
难免孤独
难免孤独 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:46

    This is what fixed the problem for me on Window: I run git config --list --show-origin and find all credential.helper=XXX configs, then go to all directories containing those .gitconfig files and change that setting to credential.helper=store

    Also, your local config should be helper = manager too: go to .git/config and add/modify this line like this:

    [credential]
    helper = manager
    

提交回复
热议问题