Page 1 of 1

Git Plugin fails to push, doesn't ask for credentials

Posted: Tue Dec 27, 2022 3:23 pm
by ttasovac
Hi.

I have an oXygen project which is also a local GitHub repo. I have no problems pulling from remote. I can commit to local repo, but pushing to remote doesn't work — I get "Push failed. Unable to access remote repository at git@github.com:...."

The url in the config is correct — and as I said, pulling is not a problem.

I have no problem pushing from the commandline or using GitHub Desktop for the same rep. I have my ssh keys and all that. This is all on Mac OS 13.0.1. But oXygen is not asking me credentials or telling me that my credentials are wrong, it's simply refusing to push.

How can I troubleshoot this more closely?

Many thanks in advance.

All best,
T.

Re: Git Plugin fails to push, doesn't ask for credentials

Posted: Wed Dec 28, 2022 3:55 pm
by chrispitude
Hi T,

I also usually try a command-line client to get more information about issues, so it's good you've tested the repository itself.

It is strange that pulling works but pushing does not.
  • If you re-clone the repo from Oxygen in a temporary directory, can you push from that clone?
  • Does Reset all credentials (in the Git Staging drop-down menu) change anything?
- Chris

Re: Git Plugin fails to push, doesn't ask for credentials

Posted: Thu Dec 29, 2022 8:06 am
by ttasovac
Resetting credentials didn't work, but re-cloning from within oXygen did. Thanks a lot, Chris for the suggestion. This was driving me crazy.

Re: Git Plugin fails to push, doesn't ask for credentials

Posted: Thu Dec 29, 2022 1:31 pm
by chrispitude
Glad to hear that worked!

If you still have the old repo directory, compare the .git/config file between them. This might explain what resolved the issue.