GitHub 的密码缓存助手错误

标签 git caching github

我正在尝试设置 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 位上也遇到了这个错误,解决方案是:

  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"

它对我有用。

关于GitHub 的密码缓存助手错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18924831/

相关文章:

Git rebase 更改作者?

git - 如何删除 Git 中的 'ghost' 远程分支?

caching - 如何使 Web 浏览器缓存内容无效

caching - Fiddler 显示缓存命中?

.net - 在哪里下载包含 NHibernate.Caches.Prevalence.PrevalenceCacheProvider、NHibernate.Caches.Prevalence 的程序集?

linux - 无法使用spring cloud config从git服务器获取信息

git - 无法解决 PR​​ 中的 GitHub 冲突

git - 如何让 git 覆盖未发现的本地更改?

Android Studio - 从 GitHub checkout *分支*

git - Jenkins 在从 gitHub 克隆时出错