I am trying to find some documentation about msysgit sh.exe command.
For instance I am aware of the --login
flag to launch a git bash session but I would to
The sh.exe
from the git command line tool suite https://git-scm.com/download/win is a Windows executable by itself but can execute linux command lines and linux shell scripts.
set PATH=D:\Programs\Gitcmd\bin;%PATH%
$HOME
: HOMEDRIVE and HOMEPATH.both can be done proper in a batch file.
sh.exe
without arguments opens a shell window, try to type commands like 'ls', 'whoami' or 'git'. It should run.
sh.exe -x -c "command arg1 'arg2 with spaces' arg3"
invokes a single linux command, for example sh.exe -x -c "git status"
sh.exe -x "path/to/scriptfile"
executes that scriptfile.
You can read more in http://www.vishia.org/Git/html/Gitcmd.html