A lightweight library for locating the Git executable on the host system. This library is a stripped down version of the Git discovery logic implemented and used by VS Code.
"engines": {
"node": ">=10.11.0 <13"
},
yarn add find-git-exec
yarn build
yarn test
import findGit from './find-git-exec';
findGit().then(git => {
const { version, path } = git;
console.log(`Git version: ${version}`);
console.log(`Git path: ${path}`);
}).catch(error => {
console.error(error);
});
Copyright (c) - TypeFox. Licensed under the MIT license.