问题现象:
Git bash不能使用,红色的字显示Git bash Error: Could not fork child process: There are no available terminals (-1)
环境背景:
window 10 64位
win32 x64 10.0.19041
git version 2.19.2.windows.1 (git --version查出来的)
处理方法:
1.打开cmd;
2.查看所有进程:tasklist
3.查看git bash进程号:tasklist|findstr git-bash.exe
4.杀掉进程:taskkill /pid 288216 -t -f
结果:
可以打开gitbash ,一切正常: