Automatically gets the nearest .git
config path, starting with the current working directory, then looking in the user's home
directory.
var gitConfigPath = require('{%= name %}')();
//=> '/Users/jonschlinkert/dev/git-config-path/.git/config'
To force git-config-path
to only look for a global config path, pass global
:
var gitConfigPath = require('{%= name %}')('global');
//=> '/Users/jonschlinkert/.gitconfig'