Where do the settings in my Git configuration come from?

Git checks four places for a configuration file: Your machine’s system .gitconfig file. Your user .gitconfig file located at ~/.gitconfig. A second user-specific configuration file located at $XDG_CONFIG_HOME/git/config or $HOME/.config/git/config. The local repository’s configuration file .git/config. The settings cascade in the following order, with each file adding or overriding settings defined in the file above … Read more

How to change line-ending settings

The normal way to control this is with git config For example git config –global core.autocrlf true For details, scroll down in this link to Pro Git to the section named “core.autocrlf” If you want to know what file this is saved in, you can run the command: git config –global –edit and the git … Read more