英文:
Git less shows an error message and bad output. How can I fix it?
问题
After installing delta and some configuration around it, Git less (the default pager) seems to have gotten screwed up. For example, if I do a git log
, the results look like this:
>git log
-" must be followed by 1 or 2 chars
Press RETURN to continue
The logs that follow have strange formatting with a bunch of "ESC" and other oddities:
ESC[33mcommit fcb45[...]
I've found the actual error message in less here:
https://github.com/gdamore/less-fork/blob/master/optfunc.c#L489
But how do I fix this?
I've tried:
- Reinstalling Git.
- Uninstalling Git, deleting
C:\Program Files\Git
, and then reinstalling. - Deleting the Delta pager and removing it from PATH.
It would make sense to me to reinstall Less, but how do I do that?
英文:
After installing delta and some configuration around it, Git less (the default pager) seems to have gotten screwed up. For example, if I do a git log
, the results look like this:
>git log
-" must be followed by 1 or 2 chars
Press RETURN to continue
The logs that follow have strange formatting with a bunch of "ESC" and other oddities:
ESC[33mcommit fcb45[...]
I've found the actual error message in less here:
https://github.com/gdamore/less-fork/blob/master/optfunc.c#L489
But how do I fix this?
I've tried:
- Reinstalling Git.
- Uninstalling Git, deleting
C:\Program Files\Git
, and then reinstalling. - Deleting the Delta pager and removing it from PATH.
It would make sense to me to reinstall Less, but how do I do that?
答案1
得分: 2
我发现在更多搜索后,我尝试使用 git add -p
时创建了这个环境变量:
当我删除了它并重新启动了我的Windows命令提示符时,问题消失了。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论