Link to home
Start Free TrialLog in
Avatar of Systemadministration
Systemadministration

asked on

Git Line-Endings

Hi experts,

we are evaluating Git at the Moment and I have questions about line endings:

Our developers are working an Windows Systems, with Git and SourceTree.
The line ending Setting ist set to core.autocrlf=true . That means that text files will be converted to CRLF when downloaded to the working directory and cenverted back to LF when uploaded to Git Repository.

OK.....

I have a bare repository on a Windows Share. I cloned that repo.

I took a file called "Environment" (LF) and a file "test.html" (LF) and commited those files und pushed it to  the repo.
Afterwards I deleted the local working Directory and did a fresh clone of the repo.

Now the files have LF line endings, alltghough core.autocrlf=true  should convert them to CRLF?

Am I  testing wrong?

How do you manage line endings? When developers write code for Java applications (in Tomat), which will run on Linux machines...
How would you manage the Settings in Git?
On use case could for example be, that a file of the application from a developer`s working direkctory should be copied to a Linux Server running Tomcat. Would this make any Problems?

Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial