Skip to content
Discussion options

You must be logged in to vote

Hi! So this isn't a huge error, it has to do with the way different computers handle the "Enter" key (new lines) in files. Its a pretty easy thing to fix so that you don't get these error messages:

Quick Fix:

  • Open your command line in your Unity project folder.
  • Type git config core.autocrlf true and hit Enter. This tells Git to automatically handle these "Enter" key differences for you.

Consistent Fix for Everyone:

  • Create a file in your project named .gitattributes.
  • Put the following lines in it:
* text=auto
*.cs text eol=lf
*.unity text eol=lf
*.prefab text eol=lf
  • This file ensures that everyone in your team will have the same settings and won't see this error.
  • Make sure everyone i…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@loganrjudy
Comment options

Answer selected by IceCreamGamesAdel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Git and Code Discussions related to version control and coding practices Programming Help Discussions around programming languages, open source and software development
4 participants