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?
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.
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.
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.
When I tried to run this command, there was no error
brew untap homebrew/homebrew-dupes
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With