I have a simple PowerShell script to keep a folder up-to-date with its git repository.
Param( [Parameter(Mandatory = $true)][string]$branch, [string]
I have encountered this behavior in the past with git commands and PowerShell, I don't know exactly why PS print the success response like an error but I solved it in this way:
$output = git pull 2>&1 Write-Host $output