Linux and MacOS: use characters as in file
$ git config --global core.autocrlf input
Windows: deactivate the automatic conversion to CRLF
$ git config --global core.autocrlf false
git config --global core.safecrlf false
git config --global core.autocrlf false
git config core.autocrlf true
For Linux and MacOS: use characters as in file
git config --global core.autocrlf input
For Windows: disable the automatic changing to CRLF
git config --global core.autocrlf false
$ git config --global core.autocrlf false
$ git config --global core.safecrlf false
# Option 1:
git config --global core.autocrlf false
# Option 2:---> Worked for me perfectly on Linux.
git config --global core.safecrlf false
All the answers here are good but you might just have a file open that you're trying to push
mklink /H git-config .gitconfig
git add git-config
git commit -m "Now tracking git config file"