简体   繁体   English

Git凭证助手不起作用

[英]Git credential helper doesn't work

I've just installed openSUSE, which came with Git version 1.8.1.4. 我刚刚安装了随Git版本1.8.1.4一起提供的openSUSE。

I'm trying to push some repository after having configured the credential helper with this line: 在使用此行配置凭据帮助程序之后,我正在尝试推送一些存储库:

git config --global credential.helper 'cache --timeout=3600'

This line doesn't throw any errors. 这一行不会引发任何错误。

However, after I enter my credentials initially, and expect to get them cached, the credential helper does not work. 但是,在我最初输入我的凭据并希望将它们缓存后,凭据帮助程序不起作用。 It spits out this message: 它吐出这条消息:

error: cannot run git-credential-cache--daemon: No such file or directory  
fatal: unable to start cache daemon: No such file or directory

Why is this happening and how can I fix it? 为什么会发生这种情况,我该如何解决?

You need to install the git-daemon rpm. 您需要安装git-daemon rpm。 That RPM has the cache daemon. 该RPM具有缓存守护程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM