index.js
function hasGit(){
		var checkGit;
		try {
			which.sync('git');
			checkGit = true;
		} catch (ex) {
			checkGit = false;
		}
		return checkGit;
	}
function hasGit(){
		var checkGit;
		try {
			which.sync('git');
			checkGit = true;
		} catch (ex) {
			checkGit = false;
		}
		return checkGit;
	}
function hasGit ( ) { var checkGit ; try { which . sync ( 'git' ) ; checkGit = true ; } catch ( ex ) { checkGit = false ; } return checkGit ; }
Check if git is installed
Check if git is installed