Skip to content

Instantly share code, notes, and snippets.

@lennybacon
Created February 5, 2018 15:22
Show Gist options
  • Save lennybacon/d37aa74b64e0afeb4a7c221318ab9806 to your computer and use it in GitHub Desktop.
Save lennybacon/d37aa74b64e0afeb4a7c221318ab9806 to your computer and use it in GitHub Desktop.
Swallow GIT output to STDERR when running in PowerShell from Team Foundation Build vNext
& git config user.email "donotreply@example.org"
& git config user.name "Build Server"
$o = Invoke-Expression "& git fetch origin master 2>&1"
$o = Invoke-Expression "& git checkout master 2>&1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment