win10安装git,报错 fatal:open/dev/null or dup failed:No such file or directory
平平笔记:
这个报错很多地方都有写,但是我的问题都不能解决,终于解决了。记录一下。
具体报错内容:
unable to set system config "http.sslcainfo":="/ssl/certs/ca-bundle.crt":exit code 128
fatal:open/dev/null or dup failed:No such file or directory
还有几个类似的。
如果不能安装git内核程序,其他的Sourcetree、GitHub 等的软件都只能安装一个外壳子,内里还是不能用。第一步clone一个代码库就出错了。
1、很多的解决方法都是:
替换C:\Windows\System32\drivers目录下的null.sys,
然后切换到桌面,点击计算机(我的电脑),
打开设备管理器——查看——显示隐藏的设备——非即插即用驱动程序——Null——点击右键属性——驱动程序——如果状态是开启点击停止,然后点击启动,或类型是系统,改为启动,然后重启电脑,即可解