When I checkout curl like this:
git clone https://github.com/bagder/curl.git
I get (without doing anything) 2 modified files:
> git status
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: winbuild/Makefile.msvc.names
modified: winbuild/MakefileBuild.vc
no changes added to commit (use "git add" and/or "git commit -a")
Even when I try to checkout these files like this:
git checkout winbuild/Makefile.msvc.names
they are still modified. A call to git diff -R
shows that it may be related to line endings, because the diff shows that ^M
is appended to each line.
Since it is suggested in the comments, that the problem is related to the .gitattributes
file, here it is:
*.dsw -crlf
buildconf eol=lf
configure.ac eol=lf
*.m4 eol=lf
*.in eol=lf
Removing my gitconfig does not change the situation, so I guess it is not related to that.
I am on ubuntu linux by the way.