Git outputs most of its messages into STDERR by design and TFS uses STDERR to fail its builds when you run the SSH on remote machine task. Bad combination right? Therefore I wrote this quick script to direct the return code 0 (success) outputs to STDOUT and only direct the failed error codes to STDERR so that the releases can be properly monitored through TFS. Perhaps there is a git addon for TFS that would do this out of the box (?) but for now this works fine for me.