无法在 git-credential-osxkeychain 弹出窗口中单击始终允许
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33636467/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
unable to click always allow on git-credential-osxkeychain popup
提问by WinchenzoMagnifico
Recently I've been getting a popup when pushing or pulling from upstream
最近我在从上游推或拉时收到一个弹出窗口
git-credential-osxkeychain wants to use your confidential information stored in "github.com" in your keychain.
The authenticity of "git-credential-osxkeychain" cannot be verified.
Do you want to allow access to this item?
I click Always allow, but it doesn't do anything. The only button that works is Deny, and then I have to enter in my github username and pw.
我单击始终允许,但它没有做任何事情。唯一有效的按钮是拒绝,然后我必须输入我的 github 用户名和密码。
I used to be able to do all this automatically without this happening... how do I fix this?
我曾经能够自动完成所有这些而不会发生这种情况......我该如何解决这个问题?
回答by Hlung
This fixed the issue for me:
这为我解决了这个问题:
- Open
Keychain Access
- Select
Keychains -> login
andCategory -> Passwords
- Type
github.com
in search box, you should see an entry (or entries) ofInternet Password
kind forgithub.com
. Right click & Delete them. - Go back to terminal and retry the git command that requires the password
- Type in your git username and password when prompted
- Done :)
- 打开
Keychain Access
- 选择
Keychains -> login
和Category -> Passwords
- 键入
github.com
搜索框,你应该看到一个进入(或项目)Internet Password
的一种github.com
。右键单击并删除它们。 - 返回终端并重试需要密码的 git 命令
- 出现提示时输入您的 git 用户名和密码
- 完毕 :)
回答by Chang
You should enter password of you os user but not git password.
您应该输入 os 用户的密码,而不是 git 密码。
回答by nimish
Delete the entry corresponding to git-credential-osxkeychain in Keychain Access and re-enter your credentials to get it working.
删除 Keychain Access 中与 git-credential-osxkeychain 对应的条目,然后重新输入您的凭据以使其正常工作。
回答by cgseller
This appears to have been an issue with MagicPrefs. I quit MagicPrefs and my symptoms have disappeared.
这似乎是 MagicPrefs 的一个问题。我退出了 MagicPrefs,我的症状消失了。
(参考:https: //apple.stackexchange.com/questions/208704/os-x-10-11-unable-to-press-allow-on-keychain-access-dialogs)
-- original answer below for posterity -- I found that this occurs with some sort of failure with Keychain Access. The reason I say that is because I also had the problem clicking the button Allow or Always Allow (but not Deny) when changing another aspect of Keychain.
- 以下为后代的原始答案 - 我发现这是由于 Keychain Access 出现某种故障而发生的。我这么说的原因是因为在更改钥匙串的另一个方面时,我也遇到了单击“允许”或“始终允许”(但不是拒绝)按钮的问题。
authd.log file shows "Succeeded.." for what appears to be each time I pressed Accept it however the modal dialog box does not disappear.
authd.log 文件显示“Succeeded..”,因为每次我按下接受它时似乎是什么,但是模式对话框并没有消失。
Solution for me: Restart, did not have to re-enter my credentials like the solutions above. :(
我的解决方案: 重新启动,不必像上述解决方案那样重新输入我的凭据。:(
回答by David James
For SourceTree users, try downgrading Git to system Git, via SourceTree > Preferences > Git > Use System Git.
对于 SourceTree 用户,尝试通过 SourceTree > Preferences > Git > Use System Git 将 Git 降级为系统 Git。
According to this reportSourceTree 2.2 uses Git 2.6.4 which is causing the bug.
根据这份报告,SourceTree 2.2 使用了导致错误的 Git 2.6.4。