Why is ‘Updating the Git index failed’ displayed

git config –global core.autocrlf false 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: core.safecrlf If true, makes git check if converting CRLF … Read more

How to to disable Git end-of-line (CRLF to LF) across all clones/machines?

The best way to avoid having to set core.autocrlf separately on each machine seems to be checking a .gitattributes file into the repository containing the single line * -text Or, if you have an older version of Git then * -crlf This tells Git that, for all paths (thus the *), end-of-line normalization should not … Read more

Git on Windows: What do the crlf settings mean?

The three values for autocrlf: true – when content goes into the repository (is committed), its line endings will be converted to LF, and when content comes out of the repository (is checked out), the line endings be converted to CRLF. This is in general meant for clueless windows users/editors. Given the assumption that an … Read more

env: bash\r: No such file or directory [duplicate]

The error message suggests that the script you’re invoking has embedded \r characters, which in turn suggests that it has Windows-style \r\n line endings instead of the \n-only line endings bash expects. As a quick fix, you can remove the \r chars. as follows: sed $’s/\r$//’ ./install.sh > ./install.Unix.sh Note: The $’…’ string is an … Read more

How line ending conversions work with git core.autocrlf between different operating systems

The best explanation of how core.autocrlf works is found on the gitattributes man page, in the text attribute section. This is how core.autocrlf appears to work currently (or at least since v1.7.2 from what I am aware): core.autocrlf = true Text files checked-out from the repository that have only LF characters are normalized to CRLF … Read more