简体   繁体   English

如何正确设置git的凭证-osxkeychain

[英]how to correctly setup credential-osxkeychain for git

I have followed the instructions on how to set up git to integrate the OS X keychain to the git command. 我按照说明如何设置git将OS X keychain集成到git命令。 The instructions say that the password prompt should come up once more, and that the keychain access window will come up. 说明说密码提示应该再次出现,并且密钥链访问窗口会出现。 the password prompt up, but the keychain window did not. 密码提示,但钥匙串窗口没有。 Also, subsequent commands requiring authentication (to a https:// url) came up with a password prompt. 此外,需要身份验证的后续命令(对https:// url)提出了密码提示。 None of these commands raised any kind of error or warning that something went foul. 这些命令都没有引发任何错误或警告某些事情发生了犯规。

My question is how can i get the git command to use the keychain for https:// requests, so that I dont have to retype my username and password? 我的问题是如何让git命令使用https://请求的keychain,这样我就不必重新输入我的用户名和密码?

Some useful command output follows: 一些有用的命令输出如下:

$ ls $(dirname $(which git)) | grep git
git
git-credential-osxkeychain
git-cvsserver
git-receive-pack
git-shell
git-upload-archive
git-upload-pack
gitk
$ git credential-osxkeychain
Usage: git credential-osxkeychain <get|store|erase>
$ git config --global credential.helper
osxkeychain
$ uname -a
Darwin mac-alex 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
$ git --version
git version 1.7.5.4

You need a newer version of Git. 你需要一个更新版本的Git。 The credential helpers aren't supported until Git 1.7.10. 直到Git 1.7.10才支持凭证助手。

暂无
暂无

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

相关问题 如何重置“git credential-osxkeychain”中存储的凭据? - How do you reset the stored credentials in 'git credential-osxkeychain'? 为什么git credential-osxkeychain没有任何文档? - Why is there no documentation anywhere for git credential-osxkeychain? 删除'credential-osxkeychain' - Remove 'credential-osxkeychain' 如何使用“ git credential-osxkeychain store”从命令行添加凭据? - how to add credentials from the command line using 'git credential-osxkeychain store'? 如何在 Makefile 中做出正确的命令“git credential-osxkeychain”,或者在推送时让 git 询问我的密码和 email - Haw to make correct command “git credential-osxkeychain” in Makefile or make git to ask my password and email when pushing 在Xcode中安装的git中禁用osxkeychain凭证帮助程序 - Disable osxkeychain credential helper in git as installed by Xcode 为什么git有时会冻结在git-credential-osxkeychain上? - Why does git freeze on git-credential-osxkeychain sometimes? git:osxkeychain凭证助手无声地记住用户名/密码 - git: osxkeychain credential helper silently fails to remember username/password 我可以在OS X Yosemite上覆盖git-credential-osxkeychain吗? - Can I override git-credential-osxkeychain on OS X Yosemite? OSX上的Git安装:无法执行'git-credential-osxkeychain':可执行文件中的CPU类型错误 - Git Installation on OSX: Cannot exec 'git-credential-osxkeychain': Bad CPU type in executable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM