got an error in Git #64208
-
Select Topic AreaBug Feature AreaIssues BodyHelp i want to use git to work with unity in a team but when i want to "commit to main" i get the error "warning: in the working copy of project name , LF will be replaced by CRLF the next time Git touches it ... Guidelines |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
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:
Consistent Fix for Everyone:
Now, when you commit and work with others, you should no longer see that error. if this answer was satisfactory, feel free to 'mark as answered' in the feed to help other users with similar questions |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for posting in the GitHub Community, @IceCreamGamesAdel ! We're happy you're here. You are more likely to get a useful response if you are posting your question in the applicable category, the Projects and Issues category is solely related to conversations around the GitHub products Issues and Projects. We’ve moved your post to our new Programming Help 🧑💻 category, which is more appropriate for this type of discussion. Please review our guidelines about the Programming Help category for more information. |
Beta Was this translation helpful? Give feedback.
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:
git config core.autocrlftrue and hit Enter. This tells Git to automatically handle these "Enter" key differences for you.Consistent Fix for Everyone: