u123
u123

Reputation: 16267

Where are the git settings stored when installing git on windows?

Where are these settings stored in windows 8?

enter image description here

Not in C:\Users\[user]\.gitconfig

apparently.

Upvotes: 1

Views: 85

Answers (2)

JBarberU
JBarberU

Reputation: 1029

Try using running echo $HOME in "git bash", it should give you its home directory (which might be what you're looking for).

Upvotes: 0

VonC
VonC

Reputation: 1323203

There are store:

  • in the git installation folder itself (<git>\etc\gitconfig): system config
  • in %HOME%\.gitconfig (global config), and id you are using git-cmd.bat, HOME is set to %USER_PROFILE%
  • in your local repo (.git/config)

Note that you need to define core.autocrlf yourself because <git>\etc\gitconfig defines it by default to true.

git config --global core.autocrlf false

(and while there are cases where core.autocrlf can help, I prefer setting it to false and working with .gitattributes core.eol directives)

Upvotes: 1

Related Questions