GitHub for Mac error: git: 'credential-osxkeychain' is not a git command

前端 未结 10 1113
日久生厌
日久生厌 2020-12-28 13:11

When using the GitHub for Mac app (version 87), I received the following error:

git: \'credential-osxkeychain\' is not a git command. See \'git --help

相关标签:
10条回答
  • 2020-12-28 13:45

    Try : git config --global credential.helper git

    0 讨论(0)
  • 2020-12-28 13:52

    http://backlogtool.com/git-guide/cn/reference/trouble-shooting.html

    HTTPS requires passwords every time you execute push/pull if you are windows,Just for the first time

    but in Mac, you can use the authentication assistant connected with the key chain. Users using Homebrew automatically install authentication assistants when installing Git. In addition, you need to install manually.

    If you want to verify that you have an installation certification assistant, you can use the following command to confirm.

    git credential-osxkeychain

    If the authentication assistant is not installed, the following contents are displayed.

    git: 'credential-osxkeychain' is not a git command. See 'git --help'.

    At this point, you can download the authentication assistant to the right path.

    1. curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
    2. chmod u+x git-credential-osxkeychain
    3. mv git-credential-osxkeychain /usr/local/bin

    After installation, set the open authentication assistant.

    1. git config --global credential.helper osxkeychain
    0 讨论(0)
  • 2020-12-28 13:53



    When I tried to run this command, there was no error

    brew untap homebrew/homebrew-dupes
    
    0 讨论(0)
  • 2020-12-28 13:53

    git: 'credential-osxkeychain' is not a git command. See 'git --help'. this error message's gone after I upgraded git, with

    brew upgrade git
    
    ==> Upgrading 1 outdated package:
    git 2.11.1 -> 2.21.0
    
    0 讨论(0)
  • 2020-12-28 13:58

    I had to do sudo ln -s /usr/local/git/bin/git-credential-osxkeychain /usr/bin/git-credential-osxkeychain because I upgraded git and then copied /usr/local/git/bin/git to /usr/bin/git

    0 讨论(0)
  • 2020-12-28 13:58

    Setting

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

    in your path also works, or wherever your path may be.

    I'm not sure which solution is preferable though.

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