There is a ton of questions relating windows-redirecting, but I can't find anything on this (trivial?) behaviour.
I want to redirect some git-for-windows output into a file. Redirections like these work:
$ dir > test.txt
$ dir test > test.txt
$ ipconfig /all > t
est.txt
But this one outputs to the terminal and creates an empty file:
$ java -version > test.txt
This one outputs to a file correctly, but not if I invoke it from my IDE (which is IAR):
$ git --version > test.txt
The latest case is the one most interesting for me. How do I get the output of any executed program redirected into a file?