I don't know what happened to my system because from last week it is giving this error continuously 2-3 times on daily basis.
fatal: Unable to create '/path/to/repo/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
I have remove this is file every time and currently it became a big pain for me.
Can anybody explain why it is happening continuously or what are its expected causes/reasons or anything that can help me to avoid this thing, at least on daily bases it should not happen.