The user or global configuration file is usually
located in $HOME/.gitconfig.
This method will try to guess the full path to that
file, if the file exists. The returned path
may be used on any git_config call to load the
global configuration file.
This method will not guess the path to the xdg compatible
config file (.config/git/config).
Locate the path to the global configuration file
The user or global configuration file is usually located in $HOME/.gitconfig.
This method will try to guess the full path to that file, if the file exists. The returned path may be used on any git_config call to load the global configuration file.
This method will not guess the path to the xdg compatible config file (.config/git/config).