Table of Content

msysgit is git for window, it is integrated portable msys+git, you can download from here:

http://code.google.com/p/msysgit/downloads/detail?name=PortableGit-1.8.4-preview20130916.7z

The default usage is to double click git-cmd.bat to launch msys shell on cmd.exe.

$ more git-cmd.bat
@rem Do not use "echo off" to not affect any child calls.
@setlocal

@rem Get the abolute path to the current directory, which is assumed to be the
@rem Git installation root.
@for /F "delims=" %%I in ("%~dp0") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%PATH%

@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%

@set PLINK_PROTOCOL=ssh
@if not defined TERM set TERM=msys

@cd %HOME%
@start %COMSPEC%

Would be nice to run on Console2, this is shell setting:

C:\portableapps\git\bin\sh.exe --login -i