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.

Desktop doesn't recognize a GitHub repository and won't push

See original GitHub issue

Description

GitHub Desktop doesn’t recognize one of my repositories as being from GitHub and fails to push. Other repositories work fine, just this one single repo has issues.

My repository is hosted at https://github.com/starkat99/ink-rs and is public. Yet when I clone the repo using Desktop, it places in the “Other” section of the repositories list, not the GitHub.com section. This wouldn’t be a problem, but somehow Desktop doesn’t recognize the remote when I try to push. Whenever I have local changes to push, if I try to use Desktop it brings up a dialog prompt as if I’m pushing a brand new repository to GitHub, asking for name, etc. Using the same name fails with an errors saying it already exists. Again, this was cloned with Desktop.

If I try to push using command line, it works. Just Desktop is failing. Since I use two-factor auth, it’s easier to use Desktop than hunt for a personal access token for command line, so I usually just use Desktop for other repositories.

Version

  • GitHub Desktop: 1.14.0
  • Operating system: Microsoft Windows [Version 10.0.17134.285]

Steps to Reproduce

  1. Clone https://github.com/starkat99/ink-rs using Desktop
  2. Observe ink-rs repo is placed in “Other” section of repository list, not GitHub.com section.
  3. Make a local commit.
  4. Push local changes using Desktop.
  5. Observe Desktop fails to push and shows a dialog for creating a new GitHub.com repo instead.

Expected Behavior

Push should work as expected on this repo.

Actual Behavior

Push will instead show a dialog to create a new GitHub.com repository instead of pushing to existing remote origin.

Additional Information

Logs

2018-09-16.desktop.production.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
stevewardcommented, Sep 17, 2018

@starkat99 you can try resetting GitHub Desktop by following these steps:

  1. Close GitHub Desktop
  2. Remove all of the files and folders in %APPDATA%\GitHub Desktop\
  3. Restart GitHub Desktop (you will need to log in and add your repositories again)

Let me know if that does not help either.

0reactions
AtillaYasarcommented, Sep 11, 2022

@starkat99 you can try resetting GitHub Desktop by following these steps:

  1. Close GitHub Desktop
  2. Remove all of the files and folders in %APPDATA%\GitHub Desktop\
  3. Restart GitHub Desktop (you will need to log in and add your repositories again)

Let me know if that does not help either.

Thanks, that worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to push in GitHub desktop · Issue #4181
I've been using GitHub Desktop to push my changes to my repo on GitHub. ... to HTTPS remotes, so this specific repository won't...
Read more >
Cannot push origin on github desktop · Discussion #24076
I was trying to push origin when suddenly I can't. I have no clue why since none of the suggested problems match, i...
Read more >
I can't connect to my own repository. Push origin #4013 - GitHub
Add in Github Desktop as local repository; Make a commit; Push origin; It's work! So, the problem was caused by using SSH. Thank...
Read more >
GitHub doesn't let me pull (nor push) my project · Issue #5596
When pressing "publish branch", an error message appears: "The repository has been updated since you last pulled. Try pulling before pushing.", ...
Read more >
I can't push to my repository (sometimes) #11301 - GitHub
Steps to reproduce the behavior · Make changes to a repository · Commit changes · Try to push changes · See error ...
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