Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git- strange characters in output (msys-git)

Tags:

git

msysgit

I'm using msys-git and notice I often get strange characters in the output after doing a git pull. I presume these are some sort of control characters that some terminals might understand but in a standard windows command prompt they result in this:

 Source/MidiLib/AudioChannelMixer.cpp      ←[m |    6 ←[32m+←[m
 Source/MidiLib/AudioEnvironment.cpp       ←[m |    4 ←[32m+←[m
 Source/MidiLib/EventIDs.h                 ←[m |    1 ←[32m+←[m
 Source/MidiLib/MidiAssignable.cpp         ←[m |  207 ←[32m+++++++++++++++++++++++++←[m←[31m---←[m
 Source/MidiLib/MidiAssignable.h           ←[m |   39 ←[32m+++++←[m←[31m-←[m
 Source/MidiLib/MidiAssignmentsDlg.cpp     ←[m |  101 ←[32m++++++++++++←[m←[31m--←[m

It's not really a problem, but annoying... is there a way to disable these characters and get a clean output?

like image 300
Brad Robinson Avatar asked Nov 23 '25 21:11

Brad Robinson


1 Answers

git config --global color.ui false should do it as those characters are responsible for changing the text color (which is not supported by the Windows console).

like image 116
Bombe Avatar answered Nov 25 '25 11:11

Bombe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!