error: git-credential-osxkeychain died of signal 11

后端 未结 7 2096
余生分开走
余生分开走 2020-12-14 07:00

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

Fetching all tracking branches from Queue-iOS          


        
相关标签:
7条回答
  • 2020-12-14 07:33

    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-pack not 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.

    • 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
    0 讨论(0)
  • 2020-12-14 07:37

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

    [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 = git@github.com:yang3wei/octopress-3-in-one
        fetch = +refs/heads/*:refs/remotes/origin/*
    [branch "master"]
        remote = origin
        merge = refs/heads/master
    
    0 讨论(0)
  • 2020-12-14 07:40

    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-usage and followed the steps mentioned there. It started working the way I expected to. Hope this helps!

    0 讨论(0)
  • 2020-12-14 07:48

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

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

    0 讨论(0)
  • 2020-12-14 07:51

    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:

    $git credential-osxkeychain

    which in turn runs:

    /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-osxkeychain program.

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

    In the meantime, I believe using a URL like git@github.com:yang3wei/octopress-3-in-one in 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.

    0 讨论(0)
  • 2020-12-14 07:53

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

    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 > Preferences > Git > Use System Git

    0 讨论(0)
提交回复
热议问题