Hi Torsten,
To clean up the output by removing these escape sequences, you can use the following git options before running command:
git config --global pager.show cat
This is a method to configure Git to use ‘cat’ as the pager for ‘git show’ commands. This configuration essentially disables paging for ‘git show’, causing the output to be directly printed to the terminal without invoking a pager like ‘less’ or ‘more’. This can be helpful if you want to avoid the pager for certain commands or in scripts where you directly process the command's output.
For more information, please refer to this page - https://stackoverflow.com/questions/8883189/how-can-i-turn-on-a-pager-for-the-output-of-git-status
Hope it helps!