-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fatal: Unable to create 'C:/Users/admin/.git/index.lock': File exists. #1134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sometimes Git crashes or is killed by the user (see ctrl+C) and an index.lock file gets left behind. Are there no more git.exe process running? The simply delete the file at |
I have the same issue but only intermittently using either It's looks like the command is creating that file deleting it but not fast enough so later in the execution it git believe that this file already exists. I'm using Below is a repro with GIT_TRACE=1
|
For what it's worth, I had the issue quite consistently and deactivating fscache solved the issue (for now)
|
Very odd as |
I'd look at these other tools to see if they're touching the index at the same time as you're performing another command. I think that's the most likely answer for what's happening here. |
Closing this out as expected behaviour of Git. |
Setup
$ cmd.exe /c ver
** insert your machine's response here **
One of the following:
** insert your machine's response here **
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
** insert your commands here **
The text was updated successfully, but these errors were encountered: