Problem:
In Windows OS, when you try to git add and you get this error “fatal: LF would be replaced by CRLF in “, the issue is mainly with the encoding since the code is written using Sublime on another OS and the encoding is different. .
Solution:
Mainly change the encoding to UTF-16 LE for Windows. This could be done in many ways:
File -> Save With Encoding -> UTF-16 LE
Locate the encoding option at the bottom of Sublime and change it to UTF-16 LE. If you didn't find it, open the User Preferences file and add this to the object: "show_encoding": true,
Problem: In Windows OS, when you try to git add and you get this error “fatal: LF would be replaced by CRLF in“, the issue is mainly with the encoding since the code is written using Sublime on another OS and the encoding is different. .
Solution: Mainly change the encoding to UTF-16 LE for Windows. This could be done in many ways: