Question

I still have XP on my laptop and have installed Git so that I can do some work on it. When I clone a repository from my server (which is linux) it automatically adds carriage returns onto each line. So now Git thinks that every file has been modified when, in fact, they haven't.

I've tried adding the following lines to my .gitconfig file to no avail

[core]
    autocrlf = true

or

[core]
    autocrlf = input

I have also tried running

git config core.autocrlf <value>

within the repository in question, and then reset hard to head. This also didn't seem to work. Any help would be appreciated.

Was it helpful?

Solution

Why not "autocrlf = false?".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top