git運行報錯fatal: open /dev/null or dup failed: No such file or directory

git運行報錯fatal: open /dev/null or dup failed: No such file or directory

問題現象:

1.win7、win10下 git運行出現 fatal: open /dev/null or dup failed: No such file or directory。
2.直接右擊運行Git Bash 閃退

g解決方法:

1.C:\Windows\System32\drivers\null.sys 這個文件損壞,可以從網上下載win7、
win10對應的null.sys文件,然後進行替換。由於我 是win10的電腦,提供鏈接。
百度網盤鏈接:https://pan.baidu.com/s/1z9PAOupsIA3g-0NpP8Vmog
密碼:3td2
2.重點注意事項:下載好了null.sys文件,切記先刪除原有的null.sys,再把新的
null.sys文件複製到進去,(不能直接覆蓋原文件!!不能直接覆蓋原文件!!不
能直接覆蓋原文件!!)然後重啓電腦,再運行git,成功運行。這個問題 的網上
所有方法我都試過,只有這一種成功了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章