git config user.name "Your Name Here"
git config user.email [email protected]
git config --global user.name "Your Name Here"
git config --global user.email [email protected]
git config --unset user.email
newline - How do I force Git to use LF instead of CR+LF under Windows? - Stack Overflow
Do these before pulling or cloning anything
git config --global core.autocrlf false
git config --global core.eol lf
If you already have previous projects, you can manually fix line endings like below strategies
Then you can install prettier
globally
Run prettier --write .
with this .prettierrc
to fix all files/folders in the current directory
{
"endOfLine": "lf"
}
prettier
can sometimes not work out of box for some file types unless you install extra plugins with it