Bakhtina Sofya b84cb877be 1st comm 1 maand geleden
..
LICENSE b84cb877be 1st comm 1 maand geleden
README.md b84cb877be 1st comm 1 maand geleden
index.js b84cb877be 1st comm 1 maand geleden
package.json b84cb877be 1st comm 1 maand geleden

README.md

git-config-path NPM version NPM monthly downloads NPM total downloads Linux Build Status

Resolve the path to the user's local or global .gitconfig.

Install

Install with npm:

$ npm install --save git-config-path

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('git-config-path')();
//=> '/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('git-config-path')('global');
//=> '/Users/jonschlinkert/.gitconfig'

About

Related projects

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.2.0, on October 26, 2016.