错误:git-credential-osxkeychain死于信号11

Sur*_*mas 27 git github keychain ios

我已经安装了github版本0.8.4,但是当我尝试从git中获取内容时,它显示了此消息.

Fetching all tracking branches from Queue-iOS completed successfully.

command: git fetch Queue-iOS

error: git-credential-osxkeychain died of signal 11
error: git-credential-osxkeychain died of signal 11
error: git-credential-osxkeychain died of signal 11
error: git-credential-osxkeychain died of signal 11
From https://github.com/appstute/Queue-iOS
   59bb075..b2da838  master     -> Queue-iOS/master
Run Code Online (Sandbox Code Playgroud)

这是关于钥匙串的问题,当我从git hub进行拉取时,会显示以下消息

Pulling all tracking branches from Queue-iOS encountered an error.

command: git pull Queue-iOS

error: git-credential-osxkeychain died of signal 11
error: git-credential-osxkeychain died of signal 11
error: git-credential-osxkeychain died of signal 11
error: git-credential-osxkeychain died of signal 11
You asked to pull from the remote 'Queue-iOS', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.

error = 1
Run Code Online (Sandbox Code Playgroud)

这里Queue-iOS是我在git上配置的本地文件夹.请帮忙.

neu*_*ite 37

我使用的是Mac OS X 10.7.5.我最近为Mac下载了git 1.8.1.2.安装它后,我在运行时碰到了相同的信号11错误消息:

$git credential-osxkeychain

反过来运行:

/usr/local/git/bin/git-credential-osxkeychain

信号11是SEGFAULT,它可能指示程序的错误(例如,解除引用空指针)git-credential-osxkeychain.

我按照缓存你的github密码的说明,git-credential-osxkeychain从S3获取了一个新的副本.这解决了这个问题.新副本的大小不同,这让我猜错了修补程序.

与此同时,我相信git@github.com:yang3wei/octopress-3-in-one在配置中使用URL 也应解决问题,因为它绕过HTTPS并使用SSH而不再调用密钥链帮助程序.


小智 8

错误信息是由一个git抛出凭证帮手.它应该是git避免在每次推送时都要求输入用户名和密码的方法(见这里).

我不知道它为什么会死,但如果你想停止使用它(并避免看到错误信息),请删除你的系统gitconfig文件.

在我的系统(OSX 10.6.8)上,我做到了:sudo rm /usr/local/git/etc/gitconfig因为文件中唯一的设置是凭证助手.先检查你的!

由于您收到了两条死亡消息,因此您可能还在自己的~/.gitconfig文件甚至项目中进行了设置.编辑这些并删除凭据帮助程序块.

正如您所指出的,凭证助手的问题并不能阻止git工作.下一步是找出助手失败的原因!


yan*_*wei 6

我知道了!尝试修改项目根目录中.git/config文件的内容.

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
[remote "origin"]
    url = https://github.com/yang3wei/octopress-3-in-one.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
Run Code Online (Sandbox Code Playgroud)

至:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
[remote "origin"]
    url = git@github.com:yang3wei/octopress-3-in-one
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
Run Code Online (Sandbox Code Playgroud)