Use Cygwin Git from command prompt and other apps.
- Put
git.cmd
into the Cygwin root e.g.C:\cygwin64
. - Add the Cygwin root to the PATH environment variable.
@setlocal | |
@rem Get the absolute path to the current directory, which is assumed to be the Cygwin root. | |
@for /F "delims=" %%I in ("%~dp0") do @set cygwin_root=%%~fI | |
@set PATH=%cygwin_root%\bin;%PATH% | |
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% | |
@if not exist "%HOME%" @set HOME=%USERPROFILE% | |
@cd /d %HOME% | |
@call "%~n0" %* |