fatal: unable to get credential storage lock: File exists

后端 未结 9 1769
难免孤独
难免孤独 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 01:02

    I followed the instructions listed before in this thread and excecute this command: git config --list --show-origin, after that it shows the locations where git has any type of configuration, like this: file:"C:\ProgramData/Git/config" , "file:C:/Users/User/.gitconfig" , "file:.git/config".

    Then I dive into the folder file:C:/Users/User/ and remove the file called: .git-credentials.lock , then excecute "git pull origin branch" again and it works !!

提交回复
热议问题