Github error: local repository cannot be resolved to branch?

I know this has been brought up before, but for some reason I keep getting this error when trying to do git push origin random to sync to Github. It was working fine before, and I suspect it has something to do with the fact that I accidentally denied keychain permissions on Mojave. The username and password queries (since it is a private repository) pop up, but after I enter my password, this error message occurs.

For reference, everything is spelled correctly. I am able to commit to my local branch without problems, and I see the random branch listed when I call git branch. git status also shows that I am working on the random branch.

Does anyone know how to fix this?

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like