git-win
Install Git for Windows by npm.
Why
- Show path of Git in your disk.
- Install Git when you have not installed.
- Silent installation Git.
Install
Install Git for Windows
from mirror
npm i -g git-win --git4win_mirror=https://npm.taobao.org/mirrors/git-for-windows
Install Git for Windows
for specify version whith flags to use by calling the installer
npm i -g git-win --git-version=2.18 -- /COMPONENTS="icons,icons\\quicklaunch,ext,ext\\shellhere,ext\\guihere,assoc,assoc_sh"
Usage
Get install path of Git:
var git = require("git-win");
console.log(git);