如何修复"git-sh-setup:未找到文件"在Windows中? [英] How to fix "git-sh-setup: file not found" in windows?
本文介绍了如何修复"git-sh-setup:未找到文件"在Windows中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是Git,它工作正常,但是重新启动后,它显示以下错误:
I was using Git and it was working fine but after a restart, it shows the following error:
git-sh-setup:找不到文件
如何解决此问题?
推荐答案
我在Windows上使用最新的 Git (v2.17.1.windows.2)遇到了这个问题,并同时解决了这两个问题cmd
和PowerShell通过将两个目录添加到PATH
:
I've run into this issue with the latest Git on Windows (v2.17.1.windows.2) and solved it both for cmd
and PowerShell by adding two directories to PATH
:
-
C:\Program Files\Git\usr\bin
-
C:\Program Files\Git\mingw64\libexec\git-core
C:\Program Files\Git\usr\bin
C:\Program Files\Git\mingw64\libexec\git-core
这篇关于如何修复"git-sh-setup:未找到文件"在Windows中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文