Git clone: Redirect stderr to stdout but keep errors being written to stderr

前端 未结 7 560
广开言路
广开言路 2020-11-27 21:11

git clone writes its output to stderr as documented here. I can redirect this with the following command:

git clone https://myrepo          


        
相关标签:
7条回答
  • 2020-11-27 21:43

    I just wanted to add that if, like me, you were more concerned with getting errors-and-only-errors in stderr and didn't care about progress either way, then there's a dead-simple workaround - you can just add --quiet (or -q) to the command.

    This tells git to simply stop reporting progress at all unless an actual error occurs.

    0 讨论(0)
提交回复
热议问题