git - How can we add a project level configuration .gitattributes file to enforce line endings which will be applicable to anyone cloning the repo? -


we working in project has code in git , developed using visual studio. quite have issue of having whole file changed because of line endings getting changed automatically. did consider option of having line endings setting configured in git on every developer machine wanted more tightly integrated repo using. able find solution in git documentation (https://git-scm.com/docs/gitattributes) right stuck because cannot commit file repository since .git folder outside repository. tried perform "git add" file did not work.

any suggestions?

you can place .gitattributes file @ root of project work tree. location of .git folder has nothing it.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -