How do I write a batch file which opens the GitBash shell and runs a command in the shell? May 2, 2023 by Tarik "C:\Program Files (x86)\Git\bin\sh.exe" --login -i -c "git archive master | tar -x -C $0" "%~1"