Unable to push in GitHub desktop
See original GitHub issueDescription
I’ve been using GitHub Desktop to push my changes to my repo on GitHub. Today when I went to push my latest commit, I got the following 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.
Note that I CAN push to other private repos on my account via GitHub Desktop, just not this particular one. Also when I try to commit to another branch of this repo via command line on my server (a different machine than the one that I’m running GitHub Desktop from), the changes never show up on GitHub, but I don’t get an error in the command line.
Version
- GitHub Desktop: 1.1.0
- Operating system: Windows 10 Home 64-bit (Version: 1709, Build: 16299.248)
Steps to Reproduce
Expected Behavior
I expected my commit to be pushed to GitHub.
Actual Behavior
I received the error shown above.
Additional Information
I tried following a bunch of issues already created in this repo in order to fix this, but kept hitting dead ends. Here are a couple things that I’ve done that I might have to undo for your solutions to work:
Ran the git config commands in #3661 to use openssh. I don’t know how to undo this if I need to. I also added a ssh key to my ~/.ssh/ folder since I didn’t have one (I’m on windows running git bash). I created a key following GitHub’s guide here: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
I added the key to my account properly (I’m familiar with using SSH with GitHub, so I don’t think the key is the issue).
Logs
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (5 by maintainers)
Top GitHub Comments
Facing the same issue. Changing to a https URL in the “Repository Settings” fixed the problem.
@WaleedAshraf Thanks a lot! it worked for me