My github desktop was working correctly. I am able to perform all the operations like Commit, Pull, Push. Today I am trying to push my code, observe below error :

Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you're signed in with an account that has permission to access this repository.

My environment :

  • Windows : 10
  • GitHub Desktop : 1.6.1

closed as off-topic by Alexey R., trashpanda, Bence Kaulics, Ray Oei, Bharat Mane Jan 30 at 6:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about software development unrelated to testing are off-topic here, but can be asked on Stack Overflow." – Alexey R., trashpanda, Bence Kaulics, Ray Oei, Bharat Mane
If this question can be reworded to fit the rules in the help center, please edit the question.


Step for fix issue:

  1. Remove repo from GitHub Desktop
  2. Logout from your github account [File > Options]
  3. File > Add Local Repository
  4. Repository > Repository Settings and change to https URL [Important tweek]

It started working back for me.

  • Thank you. It worked for me too but what's the reason ? – Arash Hatami Aug 1 at 18:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.