# What should I set autocrlf to in windows

**URL:** <https://forum.codewithmosh.com/t/what-should-i-set-autocrlf-to-in-windows/23821>\
**Category:** Git\
**Created:** [November 24, 2023, 4:00pm UTC](https://forum.codewithmosh.com/t/what-should-i-set-autocrlf-to-in-windows/23821 "2023-11-24T16:00:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dami](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dami](https://forum.codewithmosh.com/u/dami)\
**Post date:** [November 24, 2023, 4:00pm UTC](https://forum.codewithmosh.com/t/what-should-i-set-autocrlf-to-in-windows/23821/1 "2023-11-24T16:00:21Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/e/eb891ec49ead598f86d09703830edc053a664765.png)

Hii, I know that in Mosh’s course on git, autocrlf should be set to input on linux-os machines and true on windows machine. I’ve been collaborating on some projects, I get line ending issues. some of the collaborators use mac also. Also, I get the warning ‘warning: in the working copy of ‘package.json’, LF will be replaced by CRLF the next time Git touches it’ as in the screenshot above.  
i made researches, saw this blog that autocrlf should be set to false

> **[git's autocrlf=true considered harmful](https://markentier.tech/posts/2021/10/autocrlf-true-considered-harmful/)**
>
> To quote from a StackOverflow answer: »Never turn autocrlf on, it causes nothing but headaches and sorrows.« There's not…

what do you guys think?
