Find the working directories of a git repository on a local machine.
$ npm install --save git-working-directory
var git-working-directory = ;git-working-;
We search all sub-directories of your home directory looking for all git repositories, then we check the remote origin URL in each one to check if it is a working copy of the repository you are looking for.
workingCopies will be an empty array if no working copies are found. This function can take a while to complete if you have a large home directory.
MIT Â© Adam Richeimer