Git Config Line-Ending for Windows

By Xah Lee. Date: .

git newline config for Microsoft Windows

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.

git FAQ

git

git FAQ