guld-git-dir
Guld tool for getting the git directory of a path.
Example Output
/home/isysd/tech/js/node_modules/guld-git-dir/.git
Install
npm i -g guld-git-dir
Usage
// async
getGitDir().then(console.log)
Node
const getGitDir = require('guld-git-dir')
CLI
Usage: guld-git-dir [options]
Guld tool for getting the git directory of a path.
Options:
-V, --version output the version number
-p, --path <p> The path to check
-h, --help output usage information