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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14272634/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 21:49:50  来源:igfitidea点击:

error: git-credential-osxkeychain died of signal 11

iosgitgithubkeychain

提问by Suraj K Thomas

I have installed github version 0.8.4, but when i try to fetch something from git, it is showing this message.

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

It is a problem regarding keychain, when i go for pull from git hub, the following message is displayed

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

Here Queue-iOS is the local folder I have configured on git. Please help.

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

回答by neurite

I am using Mac OS X 10.7.5. I recently downloaded git 1.8.1.2 for Mac. Having it installed, I bumped into the same signal 11 error message when running:

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

$git credential-osxkeychain

$git credential-osxkeychain

which in turn runs:

依次运行:

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

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

Signal 11 is SEGFAULT which might indicate a bug (e.g. dereferencing a null pointer) with the git-credential-osxkeychainprogram.

信号 11 是 SEGFAULT,它可能表示程序存在错误(例如取消引用空指针)git-credential-osxkeychain

I followed instructions on caching your github passwordand grabbed a new copy of git-credential-osxkeychainfrom S3. That resolved the problem. The new copy is of different size which makes me guess the bug has been patched.

我按照有关缓存 github 密码的说明git-credential-osxkeychain从 S3 中获取了一个新副本。那解决了问题。新副本的大小不同,这让我猜测该错误已被修补。

In the meantime, I believe using a URL like [email protected]:yang3wei/octopress-3-in-onein the config should also work around the problem as it bypasses HTTPS and uses SSH instead where the key chain helper is not invoked any more.

与此同时,我相信使用像[email protected]:yang3wei/octopress-3-in-one配置中的 URL也应该可以解决这个问题,因为它绕过 HTTPS 并使用 SSH 而不是在不再调用钥匙链助手的情况下。

回答by Clive

The error messageis being thrown by a git credential helper. It is supposed to be a way for git to avoid asking for your username and password on every push (see here).

错误信息是由一个git抛出凭证帮手。它应该是 git 避免在每次推送时询问您的用户名和密码的一种方式(请参阅此处)。

I don't know why it is dying but, if you want to stop using it (and avoid seeing the error message), delete your system gitconfig file.

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

On my system (OSX 10.6.8) I did it with: sudo rm /usr/local/git/etc/gitconfigbecause the only setting in the file was for the credential helper. Check yours first!

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

Since you are getting twodeath messages, you may also have the setting in your own ~/.gitconfigfile or even your project's. Edit those and remove the credential helper block.

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

As you noted, the problem with the credential helper doesn't stop git from working. The next step is to find out why the helper fails!

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

回答by yang3wei

I got it! Try to modify the contents of .git/config file in your project's root directory.

我知道了!尝试修改项目根目录中 .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

To:

到:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
[remote "origin"]
    url = [email protected]:yang3wei/octopress-3-in-one
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

回答by Mihir

I had the same error every time I did a git pull. I realized that I did not have the git-credential binary which I got from(under Where's the Mac version?): https://github.com/blog/1104-credential-caching-for-wrist-friendly-git-usageand followed the steps mentioned there. It started working the way I expected to. Hope this helps!

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

回答by ssinganamalla

I was getting the following errors when I tried to use the git version 1.8.1.3 after upgrading: git-credential-osxkeychain died of signal 11 When I was doing git pull, I would get fatal: https://github.com/.../../info/refs?service=git-upload-packnot found: did you run git update-server-info on the server?

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

I am guessing it had to do with my previous invalid github credentials in the keychain.

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

  • Opened keychain access tool using Command space
  • searched for github in the keychain access tool
  • removed all the entries related to github (since I no longer needed it)
  • followed the setup git password caching section again setup git
  • it worked
  • 使用命令空间打开钥匙串访问工具
  • 在钥匙串访问工具中搜索github
  • 删除了所有与 github 相关的条目(因为我不再需要它)
  • 再次遵循设置 git 密码缓存部分设置 git
  • 有效

回答by Alaniz

I had a similar problem with git in the error: git-credential-osxkeychain died of signal 11

我在错误中遇到了与 git 类似的问题:git-credential-osxkeychain 死于信号 11

Not cloning repo since http, because you need verification everytime that your need do a push or pull

自 http 以来不再克隆 repo,因为每次需要执行推或拉时都需要验证

回答by Alfred Bez

I'm using SourceTree (on a Mac) and I had the same issue.

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

First I entered the following commands in the Terminal:

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

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

Then I had to switch to system git in SourceTree:

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

SourceTree > Preferences > Git > Use System Git

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