Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: unable to get credential storage lock: File exists

Tags:

git

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 exists 

While the push did end up pushing successfully, I was wondering why this error appeared. It is still doing this, and was not doing this before. Any help is appreciated. Thanks!

like image 507
J. Doe Avatar asked May 29 '16 03:05

J. Doe


1 Answers

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.

like image 66
Zhe He Avatar answered Sep 20 '22 04:09

Zhe He