{"id":578,"date":"2016-07-07T13:23:56","date_gmt":"2016-07-07T21:23:56","guid":{"rendered":"https:\/\/maxbronsema.com\/blog\/?p=578"},"modified":"2016-07-07T13:23:56","modified_gmt":"2016-07-07T21:23:56","slug":"warning-lf-would-be-replaced-by-crlf-fixed-by-dos2unix","status":"publish","type":"post","link":"https:\/\/maxbronsema.com\/blog\/2016\/07\/07\/warning-lf-would-be-replaced-by-crlf-fixed-by-dos2unix\/","title":{"rendered":"Warning: LF would be replaced by CRLF fixed by dos2unix"},"content":{"rendered":"<p>If you work with the version control system git, and you work with people that use a multitude of development environments and operating systems, you are bound to run across the warning, &#8220;LF would be replaced by CRLF.&#8221;<\/p>\n<p>There are many ways to fix this, but my favorite is a utility called dos2unix. You feed the command line utility the file to convert and dos2unix does the rest. If you are using homebrew on the mac you can run<\/p>\n<pre>brew install dos2unix<\/pre>\n<p>Other operating systems support the utility as well, the Windows app store even has a dos2unix utility.<\/p>\n<p>Once you have it setup you simply pass the offending file to the utility and then proceed on with your day.<\/p>\n<pre>dos2unix config.rb<\/pre>\n<p>You can pass it multiple files if you wish to do batch conversion. Once you receive no more warnings you can continue on with a git commit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you work with the version control system git, and you work with people that use a multitude of development environments and operating systems, you are bound to run across the warning, &#8220;LF would be replaced by CRLF.&#8221; There are many ways to fix this, but my favorite is a utility called dos2unix. You feed &hellip; <a href=\"https:\/\/maxbronsema.com\/blog\/2016\/07\/07\/warning-lf-would-be-replaced-by-crlf-fixed-by-dos2unix\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Warning: LF would be replaced by CRLF fixed by dos2unix<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,2],"tags":[],"class_list":["post-578","post","type-post","status-publish","format-standard","hentry","category-git","category-web-development"],"_links":{"self":[{"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/posts\/578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/comments?post=578"}],"version-history":[{"count":2,"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":580,"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/posts\/578\/revisions\/580"}],"wp:attachment":[{"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/maxbronsema.com\/blog\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}