I'm trying to load a config file in git, but the file is not in one of the default storage locations. I tried doing git config --file .gitconfig
(when I was in the correct directory that contains the .gitconfig
file) but git responded by giving me a standard help message. i.e.:
usage: git config [options]
Config file location
--global use global config file
--system use system config file
--local use repository config file
-f, --file <file> use given config file
etc.
Probably you want to do:
$ git config --local include.path "$PWD/.gitconfig"
This will include the local .gitconfig
file.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments