PowerShell ISE throws an error on git checkout

后端 未结 4 469
梦毁少年i
梦毁少年i 2020-12-06 17:14

In PowerShell, git checkout runs without any error message. In the ISE, while git checkout stills works, the ISE gives an error message.

         


        
4条回答
  •  失恋的感觉
    2020-12-06 17:46

    It looks like you can now redirect stderr to stdout throughout your powershell script by simply setting an environment variable:

    $env:GIT_REDIRECT_STDERR = '2>&1'
    

提交回复
热议问题