I have git
for windows installed, which includes bash.exe
. On Unix systems, I have a Bash script named git-myScript
that when available in $PATH
, allows me to run commands like these:
git myScript <args>
git --no-pager myScript <args>
Is there a way to “port” my Bash script to Windows? I don’t only want to create a PowerShell script named git-myScript.ps
that will call the git-myScript
bash script, because I want the ability to add general git
option arguments before the myScript
argument.