M
M
m00nkey2014-07-30 11:05:44
PowerShell
m00nkey, 2014-07-30 11:05:44

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

1 answer(s)
L
leclecovich, 2014-07-30
@m00nkey

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 question

Ask a Question

731 491 924 answers to any question