question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to push in GitHub desktop

See original GitHub issue

Description

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

2018-03-05.desktop.production.log

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

52reactions
WaleedAshrafcommented, Mar 12, 2018

Facing the same issue. Changing to a https URL in the “Repository Settings” fixed the problem.

1reaction
santiagomjcommented, Jan 5, 2019

@WaleedAshraf Thanks a lot! it worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to push commits · Issue #10429 · desktop ... - GitHub
I am committing files to my branch in GitHub, adding a summary and description as always, but then when I click on the...
Read more >
Can't push to github · Issue #9132 · desktop/desktop
Some common reasons include: You are not logged in to your account: see File > Options. You may need to log out and...
Read more >
Cannot Push code · Issue #14257 · desktop/desktop - GitHub
I had this issue after upgrading to OS 12.3 Monterey. Disable the OS firewall and it pushes fine. Then add an exception for...
Read more >
i cant publish my repository from my github desktop #10418
Some common reasons include: You are not logged in to your account: see File > Options. You may need to log out and...
Read more >
I can't push to my repository (sometimes) #11301 - GitHub
Thanks for the report @SaltNuggets. This sounds like a network issue -- have you tried performing a git push via the command line...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found