Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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'.

error: The requested URL returned error: 403 while accessing https://github.com/[PROJECT URL]/info/refs

fatal: HTTP request failed (256)

The git command-line tools (version 1.8.0) are installed at /usr/local/git/bin and git-credential-osxkeychain was correctly installed at /usr/local/git/bin.

How can I solve this error?

like image 394
Kilimanjaro T Robbs Avatar asked Dec 01 '12 16:12

Kilimanjaro T Robbs


People also ask

How do I set Git credentials on Mac?

Update credentials via MacOS Keychain AccessOpen Keychain Access on your mac (you can use spotlight) Search for github.com. Select the github.com keychain item. Edit or delete your GitHub account credentials.

How do I add git credentials to Mac keychain?

Updating your credentials via Keychain AccessType Keychain access then press the Enter key to launch the app. In Keychain Access, search for github.com. Find the "internet password" entry for github.com . Edit or delete the entry accordingly.

How do I fix git always asking for credentials?

Entering Git Username and Password in Remote URL To prevent Git from asking for your username and password, you can enter the login credentials in the URL as shown. The main drawback of this method that your username and password will be saved in the command in the Shell history file.


2 Answers

enter image description here

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

brew untap homebrew/homebrew-dupes 
like image 167
苏大强 Avatar answered Sep 21 '22 14:09

苏大强


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 
like image 20
kangkyu Avatar answered Sep 20 '22 14:09

kangkyu