Finds the parent directory which is the root of the git repository
npm install git-root-pathsh
$ npm install git-root-path
`
$3
`javascript
var gitRootPath = require("git-root-path");
// You can pass a folder name to find the root of the repository
var path = gitRootPath("/root/gitrepo/path/to/folder");
// /root/gitrepo
// If you don't pass any arguments then the current folder is taken
var path = gitRootPath();
``