Git: Config Line-Ending for Windows
git newline config for Microsoft Windows
- Linux and Mac systems use LF for newline.
- Microsoft Windows use CRLF for newline. 〔see ASCII Characters〕
You can configure git to do auto line-ending conversion when checking in/out.
git config --global core.autocrlf true
- Convert LF to CRLF when check out.
git config --global core.autocrlf input
- Convert CRLF to LF when check in.
git config --global core.autocrlf false
- Do nothing.