dr jerry
dr jerry

Reputation: 10026

how to reconfigure gitignore_global.txt

Due to a companywide account migration I do see an error while doing a git action like git checkout my/branch: '\\old\now\nonexistent\path\to\my\home\documents\\gitignore_global.txt': Permission denied

I would like to reconfigure git, where can I do this? I don't see any local configuration pointing to this directory..

Upvotes: 0

Views: 1161

Answers (1)

Simon Fromme
Simon Fromme

Reputation: 3174

To set the path to your global exclude file (or to set any other global option for that matter) use something like:

git config --global core.excludesfile "%USERPROFILE%\.gitignore"

(assuming you are on a Windows machine)

Also see Customizing Git - Git Configuration.

Upvotes: 2

Related Questions