Problem:

Authentication failed on github push to origin from desktop

Environment:

MacBook Air (13-inch, 2017) MacOS Big Sur 11.0.1 (20B50) Github Desktop Version 2.6.0

Description:

I’m starting from a clean install. After having restored my backup to my desktop, I downloaded Github desktop, logged in, and started rebuilding by “Add existing repository” from my restored folders. All repositories can fetch and push to origin without problems except one. I am getting this error:

Authentication failed. Some common reasons include:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/571020d1-6949-47b9-b799-ddb3ac6368db/Untitled_10.png

I have tried troubleshooting following common reasons above and more:

  1. I am logged in. All repos belong to 1 user and I have successfully logged in. And it’s working in all repos.
  2. I have logged out and logged back in. Same error.
  3. I have permission to access repo. I use same login in desktop and in web.
  4. The repo is not archived AFAIK.
  5. I am not using SSH authentication.

It only happens in this repository among many that have succesfully allowed a pull and push.

Testing with another repository works.

Testing with another repository works.

Comparing the settings with repos that can successfully do push to origin without authentication failures, all settings (Options, Manage access, Security & analysis, Branches, Webhooks, Notifications, Integrations, Deploy keys, Actions, Secrets, Moderation settings) are identical:

Sample of comparing settings between repositories. All were identical.

Sample of comparing settings between repositories. All were identical.

So what am I missing?

Solution: