As title said, using GIT with Unity always create index.lock file, and every time try to commit my changes, it shows me:
fatal: Unable to create 'F:/dev/unity/test/my-game/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
I already try to manually delete index.lock file inside of .git directory thousand times, but it's worthless. Because when I delete them, I loose all staging files, so I redo "git add ." again, and "git commit" gives same error, index.lock exists.
So I try to kill other git processes but there's no other git process alive. I already re-created whole repository and try to commit several times but always having same problem!
I made another repo and try add & commit with single text file works fine, seems like it only happens in my game project. I guess that it has lots of files(almost 1.3GB), so after "git add ." seems like git crashed. I'm not sure because I couldn't find any git process remains, but there's index.lock file always and never gone.
I can't find any related information about this. I'm stuck in here almost 3 days and found nothing. What am I missing?