I use the following command to get stdout and stderr in the terminal and in a file:
git svn rebase 2>&1 | tee test.out
But in case of changes in svn repository 2>&1 causes strange characters in test.out:
^M^[[KSuccessfully rebased and updated refs/heads/master.
^^^^^^
Hexdump with hexdump -C test.out:
0000000 0d 1b 5b 4b 53 75...
What is 0d 1b 5b 4b and why does it appear in case of usage of 2>&1? Without 2>&1 no such problems. Thx in advance.