Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes

This is the warning I got:

warning: in the working copy of 'BitternProject/src/main/resources/edu/augustana/ScenarioScreen.fxml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'BitternProject/target/classes/edu/augustana/ScenarioScreen.fxml', LF will be replaced by CRLF the next time Git touches it

asked in CSC 305 Fall 2024 by (4.7k points)

2 Answers

+4 votes
 
Best answer

It sounds like it has to do with conflicting systems (Linux vs windows?), so it probably has to do with you having a different system than your teammates. Also, I wonder if Scenebuilder could affect that if it is considered to be a "system?"

https://stackoverflow.com/questions/5834014/lf-will-be-replaced-by-crlf-in-git-what-is-that-and-is-it-important

answered by (4.5k points)
selected by
+3

To add onto this; it is essentially just changing the line endings of those files. Since Linux uses LF and Windows uses CRLF, it is changing those line endings so it matches the operating system. It is more of a "auto-correction" feature if anything so that there isn't any unexpected conflicts.

+3 votes

I think that I am also getting similar warnings when I add to git. I found that it doesn't affect anything. At least it doesn't affect anything that I know about.

answered by (2.3k points)
...