Why does PowerCmd show duplicate git commits?

早过忘川 提交于 2019-12-06 15:46:49
VonC

Those are ANSI escape sequence (for ANSI colors), and PowerCmd doesn't seem to support them (as mentioned in this thread)

You can try:

git log --no-color

That would allow you to check if there still is duplicate commits when you ask for no color.

I checked: the output is always doubled, even when I set TERM=msys

The only way I got it to behave is by redirecting stdout to a dummy text (not NUL, but an actual dummy file)

C:\Users\vonc\prog\git\git>git log -2 --no-color --oneline >dummy
f82887f Git 2.1-rc2
764c739 Merge branch 'mb/relnotes-2.1'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!