I am using Windows. When staging files I get this error.
Updating the Git index failed. A rescan will be automatically started to resynchronize git-gui.
followed by a list of files which have been converted from LF to CRLF
After a lot of reading up on the CRLF / LF issue with Git usage cross platform, I more or less understand what is going on, and I am trying to determine which autocrlf setting is best for me, but I cant understand why Git says that Updating the index failed. My understanding is that it has converted the EOF’s so what is the problem with that and why is it telling me that updating the index has failed. Do I need to fix something ( other than picking an appropriate autocrlf setting) or can I just proceed
I then have two options Continue and Unlock Index, what do these mean and what is the best course of action.
Has always been my recommendation (see “Git 1.6.4 beta on Windows (msysgit) – Unix or DOS line termination“).
However, in your case, you can “Continue”, but this warning is there to mention the conversion of certain files might not be reversible:
If you don’t want to see this warning, as explained in this thread, you can set
core.safecrlftofalse.You could also stash your files through the tools menu of git gui, and add some options to those tools with, for instance, this git config file.
The interest is that, for each tool, you can add:
you can see that message in the
index.tclgit-gui script: it removes the index.lock file the git-gui creates when manipulating the index.You can see more at the “lockfile API” documentation page: