devops
devops
autocrlf in git
Simple Usage
git help page For windows:
$ git config --global core.autocrlf true
# Configure Git to ensure line endings in files you checkout are correct for Windows.
# For compatibility, line endings are converted to Unix style when you commit files.
For Mac/Linux:
$ git config --global core.autocrlf input
# Configure Git to ensure line endings in files you checkout are correct for OS X/Linux, when commit files, windows style end of line will be changed to Linux style (lf).
Detail
TODO… stackoverflow see this for windows setting.