安裝簡單,除了修改安裝路徑外,一路默認便可,相關配置請見:《msysGit的配置及中文支持》 git
cd /bin ln -s /cygdrive/d/Program\ Files/Git/bin/git.exe git.exe ln -s /cygdrive/d/Program\ Files/Git/libexec/git-core/git-receive-pack.exe git-receive-pack.exe ln -s /cygdrive/d/Program\ Files/Git/libexec/git-core/git-upload-archive.exe git-upload-archive.exe ln -s /cygdrive/d/Program\ Files/Git/libexec/git-core/git-upload-pack.exe git-upload-pack.exe而後,登陸SSH就能夠使用git命令了。
$ mount D:/Program Files/ICW/etc/terminfo on /usr/share/terminfo type vfat (binary,noacl) D:/Program Files/ICW/bin on /usr/bin type vfat (binary,noacl) D:/Program Files/ICW/lib on /usr/lib type vfat (binary,auto) D:/Program Files/ICW on / type vfat (binary,noacl) C: on /cygdrive/c type vfat (binary,posix=0,user,noumount,auto) D: on /cygdrive/d type vfat (binary,posix=0,user,noumount,auto)