gitnewline

How can I print out the value of a git configuration setting (core.autocrlf) on Windows?


I'm trying to fix a problem with CRLF on Windows.

How do I see what the value of the configuration setting core.autocrlf is set to on my system?


Solution

  • If you're using Git Bash:

    git config --get core.autocrlf
    

    And for the global config:

    git config --global --get core.autocrlf