Certain commands, such as git log result in an annoying error message before the expected output is produced on screen. The error message looks like this:
In my case, upgrade my old Windows 7 desktop to Windows 10, and found out TERM system variable had been added by Strawberry Perl and set to dumb decades ago.
So remove the TERM system variable from Windows 10 environment variables settings fix this issue without any further updates.
Now, type echo $TERM shown the default value: xterm-256color works for everything...