28

我已经安装了 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

这是关于钥匙串的问题,当我从 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

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

4

7 回答 7

38

我正在使用 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 代替不再调用密钥链帮助程序。

于 2013-02-07T09:26:33.393 回答
8

错误消息是由 git credential helper抛出的。它应该是 git 避免在每次推送时询问您的用户名和密码的一种方式(请参见此处)。

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

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

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

正如您所指出的,凭证助手的问题并没有阻止 git 工作。下一步是找出帮助程序失败的原因!

于 2013-01-21T23:31:56.517 回答
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

到:

[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
于 2013-02-02T16:11:31.260 回答
1

每次执行 git pull 时,我都会遇到同样的错误。我意识到我没有从中获得的 git-credential 二进制文件(在哪里是 Mac 版本?): https ://github.com/blog/1104-credential-caching-for-wrist-friendly-git-usage并按照那里提到的步骤进行操作。它开始按我预期的方式工作。希望这可以帮助!

于 2013-01-28T12:22:55.340 回答
1

升级后尝试使用 git 版本 1.8.1.3 时出现以下错误: git-credential-osxkeychain died of signal 11 当我在执行 git pull 时,我会得到 fatal: https://github.com/.../../info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

我猜这与我之前在钥匙串中无效的 github 凭据有关。

  • 使用命令空间打开钥匙串访问工具
  • 在钥匙串访问工具中搜索了github
  • 删除所有与 github 相关的条目(因为我不再需要它)
  • 按照设置 git 密码缓存部分再次设置 git
  • 有效
于 2013-03-24T01:47:58.880 回答
1

我在错误中遇到了与 git 类似的问题:git-credential-osxkeychain dead of signal 11

从 http 开始不克隆 repo,因为每次需要进行推送或拉取时都需要验证

于 2013-07-28T02:11:18.317 回答
1

我正在使用 SourceTree(在 Mac 上)并且遇到了同样的问题。

首先,我在终端中输入了以下命令:

curl -s -O \
https://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
chmod u+x git-credential-osxkeychain
sudo mv git-credential-osxkeychain \
"$(dirname $(which git))/git-credential-osxkeychain"
git config --global credential.helper osxkeychain

然后我不得不切换到SourceTree中的系统git:

SourceTree > 首选项 > Git > 使用系统 Git

于 2014-07-09T14:01:36.653 回答