GitHub的密码缓存助手错误

时间:2013-09-20 19:56:10

标签: 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)

任何人都可以开导我吗?我不是说命令行很好,但试图解决它,但没有成功。

2 个答案:

答案 0 :(得分:2)

我知道这是一个老问题,但我在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”
  4. 然后它对我有用。

答案 1 :(得分:0)

当我尝试通过双击运行git-credential-winstore.exe时出现此错误。我通过访问cygwin窗口(我运行git)并在那里运行它获得了成功。

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

希望这会有所帮助。