Reputation: 3216
I was having an issue with my keychain earlier today, wherein I was getting endless login prompts that were unresolvable. I deleted the keychain by following the strategy here: http://www.techarp.com/showarticle.aspx?artno=801
Now, however, my git functionality has been impacted. Whenever I try to push to my own repo, I get the following error:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/myusername/myrepo.git/'
I tried generating a new SSH key and resetting the authentication. I am able to successfully authenticate when running ssh -T [email protected]
.
I know this issue has something to do with the keychain. The terminal hangs whenever I try to run the following command:
$ git credential-osxkeychain get
Where do I go from here? I'm not sure how to troubleshoot or fix this issue. For reference, I am on OS X Yosemite.
Upvotes: 0
Views: 467
Reputation: 3216
Per @MikeD's suggestion in the comments, I removed credential.helper from my ~/.gitconfig file. Then, when I called git push
, it prompted me for my github login credentials before successfully pushing.
Upvotes: 2