在运行 git diffgit log 时会出现 WARNING: terminal is not fully functional 这是因为 TERM 变量的值 git 无法识别。

在Windows中可以使用如下的方式设置

SETX TERM cygwin

以上方法只适合与当前窗口,可以通过以下方式设置全局环境变量。图片来源于参考文献[2]

windows 环境变量设置

在Linux中可以使用如下的方式设置

export TERM=xterm

参考:

  1. How to: Fix ‘WARNING: terminal is not fully functional’ error on Windows with Cygwin/Msysgit
  2. Why does git diff on Windows warn that the “terminal is not fully functional”?
GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:26 天前 )
bc6f3e22 The underlying issue is that the "Pane" is used both as a model and as a UI element and so a pane loses its content as soon as it is closed, but the tree only gets reordered after the animation has finished. This PR is truly just a hotfix, because it doesn't solve this issue, it only adds checks to the function that crashes. Closes #17869 Closes #17871 ## Validation Steps Performed * `Split pane` a few times * Run the "Close all other panes" action * Doesn't crash ✅ 6 天前
6196a3d0 7 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐