1
1
1nd1go2013-11-20 20:43:13
git
1nd1go, 2013-11-20 20:43:13

About .gitattributes and line-endings

Greetings!

Lord, I'm confused.

After reading articles about Orthodox work with line breaks in the cross-platform, I rushed to change them. Everything seems to be clear, but there are circumstances.

I made a .gitattributes file,
- I put it there * text=auto,
- I have the installation on my windows machine core.autocrlf = true
- I have the installation on the *nix build machine - I core.autocrlf = input
normalized the lines on the dev machine (

git rm --cached -r . && git reset --hard && git add . && git commit -m "normalized" && git push develop origin/develop
)
- after which, on the build machine, after the execution, git rm --cached -r . && git reset --hardI get all the files changed.

Solved by commenting out .gitattributes.

What's happening?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question