安装简单,除了修改安装路径外,一路默认便可,相关配置请见:《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)