Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't push/pull to Github using Gitbox after password change

I changed my Github password and now I'm unable to push/pull from any of my local repos to/from Github. Gitbox (http://www.gitboxapp.com/) prompts me for a username/password which I input (have double and triple checked!) but then fails with the error:

error: The requested URL returned error: 403 Forbidden while accessing https://github.com/{myproject}/{myrepo}/info/refs
fatal: HTTP request failed

Doing a "defaults delete com.oleganza.gitbox" doesn't fix it either. :/

Any thoughts?

like image 967
Nathan Pitman Avatar asked Apr 11 '14 15:04

Nathan Pitman


People also ask

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.

Why is Git push asking for password?

If Git prompts you for a username and password every time you try to interact with GitHub, you're probably using the HTTPS clone URL for your repository. Using an HTTPS remote URL has some advantages compared with using SSH.

Why does Git not ask for password?

The most likely reason for this is that Git has been configured to use a credential helper. The configuration could have been made a) for all users in your system b) only for your user c) for a specific repository.


1 Answers

Try this:

open Keychain Access.app, search for GitBox, and delete the relevant entry there (in the "All items" category in the left pane).

Then try GitBox again — it should accept the new password.

like image 70
Joel L Avatar answered Oct 23 '22 18:10

Joel L