Answer the question
In order to leave comments, you need to log in
How to execute multiple commands in git bash terminal in powershell script?
Good day!
Guys, there is a powershell script, you need to add a call to the git bash terminal (done), then execute a few commands in it, then exit this terminal and continue the script.
How can I do that?
Answer the question
In order to leave comments, you need to log in
And what prevents you from calling git.exe in a powershell script? For example, this is how you can output statistics on files to the console:
$git_exec = "C:\Program Files (x86)\Git\bin\git.exe"
Write-Host "`n---`nStaged files:"
& $git_exec diff --shortstat --staged | Write-Host
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question