Warning: LF will be rep;laced by CRLF in [PROJECT FILE]

[SOLVED]
Hello people who know it all. I’m having a problem with my repository, mostly with my Github Desktop. The problem appears in the image attached to the post. Every time that I save some new updates in my project and want to create a new commit, that error appears. I have to close the program and restart my computer in order to commit to master successfully. Has someone experienced something like that? How did you guys solved it? IS there are some new .gitignore files that I have to implement in the Unity gitignore?

How can I solve this?

That’s not an error. It’s just a warning, explaining what git is doing to your files in case you care. You almost certainly don’t, so ignore it.

I wish to ignore it but it won’t let me commit to my repository. So I don’t know what to do with that warning.

The real error is at the bottom: it’s trying to process Temp/UnityLockfile, and is unable to do so. But it shouldn’t be doing that anyway; you need to tell git to ignore that whole directory (and some others; see the manual).

3 Likes

Alright, I think I got it. I had to manually set the Temp/UnityLockfile to the.gitignore. Going to advanced a bit more in my project and see if that is the problem.

1 Like

You really need to .gitignore the entire Temp directory. As well as Library, and any other directory at that level that is not Assets, Packages or ProjectSettings.

3 Likes

Go to; gitignore/Unity.gitignore at main · github/gitignore · GitHub

It has a complete .gitignore master for Unity.

3 Likes

Sorry for the humongous belated result. Joe was right, I had to gitignore the entire Temp directory.

The link below explains what Joe and I are talking about.

So, in other cases, title will be edited as [SOLVED]

2 Likes

THANKS ALOT! Helped with some crazy bugs here.