If you specify the arguments incorrectly git(and must print its use), it will exit with error code 129:
C:\Temp>git status --asdf
error: unknown option `asdf`
usage: git status [options] [--] <filepattern>...
.... help is printed here ....
C:\Temp>echo %ERRORLEVEL%
129
Is it possible that you pass commands through PowerShell incorrectly? (For example, -Wait -Passthroughdelivered to git-status?)
You can completely exclude passing arguments by invoking the command git-statusinstead of invoking gitwith an argument status.
source
share