安装好git之后,在命令行输入git --version报错


windows10使用git报错 fatal:open /dev/null or dup failed: No such file or directory解决方案或git bash here闪退

        百度搜了很久全凉了,试过sfc/scannow命令,失败。。。。。。试过替换C:WINDOWS\system32\drivers\null.sys文件,还是失败。。。。。心态很不稳定

        在挣扎了很久,问了大佬之后,找到这种方法:

                首先打开regedit

windows10使用git报错 fatal:open /dev/null or dup failed: No such file or directory解决方案或git bash here闪退

        然后找到    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Null   文件夹,修改数据指为1,如下图:

windows10使用git报错 fatal:open /dev/null or dup failed: No such file or directory解决方案或git bash here闪退

重启电脑 ing~~~~~~~

大功告成。。。。

windows10使用git报错 fatal:open /dev/null or dup failed: No such file or directory解决方案或git bash here闪退


相关文章:

  • 2021-07-10
  • 2021-05-28
  • 2022-01-18
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
猜你喜欢
  • 2021-03-26
  • 2021-07-02
  • 2021-10-13
  • 2021-12-07
  • 2022-01-07
  • 2022-01-31
  • 2021-07-19
相关资源
相似解决方案