Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 454 Bytes

.verb.md

File metadata and controls

15 lines (11 loc) · 454 Bytes

Usage

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'