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.

Convert LF to CRLF when check out.

git config --global core.autocrlf true

Convert CRLF to LF when check in.

git config --global core.autocrlf input

Do nothing.

git config --global core.autocrlf false

git FAQ