sh.exe": /bin/git 当 git -version 时文件编号错误

sh.exe": /bin/git bad file number when git -version

刚安装 git,当我 运行 git bash 并输入 git -version 时,我得到这个错误:sh.exe": /bin/git: bad file number .

在安装过程中,我遇到了一个错误,但安装仍在继续:"unable to configure the line ending conversion core.autocrif true." Git GUI 未启动,我收到错误消息:"Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item." 正在尝试 运行因为管理员不会更改它。

我 运行 偶尔会遇到这个问题(包括大约 5 分钟前),我 "solve" 通过重新安装 Git client