GitHub 的密码缓存帮助程序错误



我正在尝试设置GitHub在此页面底部为Windows 7推荐的密码缓存实用程序,但无法理解问题所在(导致程序停止工作,需要我关闭它)。

我用谷歌搜索了错误消息,发现了一个错误非常相似的问题(这里),

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 时。我的错误缺少"字符串路径ToGit",这意味着我的情况并非如此,所以我不知道为什么我无法安装(我第一次使用 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位上也遇到了此错误,解决方案是:

  1. 下载 git-credential-winstore.exe 并将其
    安装在c:\Program Files\Git
    (64 位 Git 安装的默认位置)
  2. 启动BINGW64
  3. 运行以下命令:
    ./git-credential-winstore -i "C:\Program Files\Git\bin\git.exe"

然后它对我有用。

当我

尝试通过双击它来运行 git-credential-winstore 时.exe我遇到了此错误。 我通过去一个cygwin窗口(我在那里运行git)并在那里运行它取得了成功。

我怀疑如果我尝试从 Windows 命令提示符窗口运行它,它会失败。

希望这有帮助。

最新更新