在运行 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
8
0
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:3 个月前 )
8598ed78 Closes #18037 8 天前
50060452 Forgetti di spaghetti in #18215. Closes #18324 ## Validation Steps Performed * Launch through the start menu * Explicitly minimize * Then... * Launch through the start menu again ✅ * Launch via wtd.exe in Win+R ✅ * Launch via wtd.exe in another Terminal ✅ * Launch via handoff ✅ 8 天前
Logo

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

更多推荐