Answer the question
In order to leave comments, you need to log in
Why doesn't calling C:\Program Files\Git\bin\sh.exe via PowerShell with a command pass to it work?
I execute the command:
& 'C:\Program Files\Git\bin\sh.exe' 'cd /e/Git/Project && git pull' | Out-String
sh.exe : /usr/bin/bash: cd /e/Git/Project: No such file or directory
At line:1 char:1
+ & 'C:\Program Files\Git\bin\sh.exe' 'cd /e/Git/Project ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (/usr/bin/bash: ...le or directory:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
"C:\Program Files\Git\bin\sh.exe" -c "cd /e/Git/Project && git pull"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question