如何正确设置git的凭证-osxkeychain [英] how to correctly setup credential-osxkeychain for git

查看:2818
本文介绍了如何正确设置git的凭证-osxkeychain的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循如何设置git 来集成OS X钥匙串到git命令。说明指出密码提示应该再次出现,并且钥匙串访问窗口会出现。密码提示,但钥匙串窗口没有。另外,需要认证的后续命令( https:// url)提供了密码提示。

I have followed the instructions on how to set up git to integrate the OS X keychain to the git command. 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. None of these commands raised any kind of error or warning that something went foul.

我的问题是,我如何获得git命令来使用<$ c $的钥匙串c> https:// 请求,这样我就不必重新键入我的用户名和密码了?

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?

一些有用的命令输出如下:

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


推荐答案

您需要更新版本的Git。直到Git 1.7.10才支持凭证助手。

You need a newer version of Git. The credential helpers aren't supported until Git 1.7.10.

这篇关于如何正确设置git的凭证-osxkeychain的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆