我正在尝试设置 GitHub 在 this page 底部为 Windows 7 推荐的密码缓存实用程序。 ,并且无法理解问题所在(导致程序停止工作,需要我将其关闭)。
我在 google 上搜索了错误消息,发现了一个具有非常相似错误的问题 ( here ),
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Git.Credential.WinStore.Program.InstallTheApp(String pathToGit, Boolean silent)
at Git.Credential.WinStore.Program.Main(String[] args)
表明错误是在路径环境变量中查找GIT。我的错误缺少“String pathToGit”,这意味着我的情况并非如此,所以我不知道为什么我无法安装(我第一次使用 Git!)...
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Git.Credential.WinStore.Program.InstallTheApp(Boolean silent)
at Git.Credential.WinStore.Program.Main(String[] args)
谁能帮我解答一下吗?我不太会说命令行,但尝试解决它,但没有成功。
最佳答案
我知道这是一个老问题,但我在 Windows 10 64 位上也遇到了这个错误,解决方案是:
- 下载 git-credential-winstore.exe 并将其安装在
c:\Program Files\Git
(64 位 Git 安装的默认位置) - 启动 BINGW64
- 运行此命令:
./git-credential-winstore -i "C:\Program Files\Git\bin\git.exe"
它对我有用。
关于GitHub 的密码缓存助手错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18924831/