Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 12

Github Desktop no longer recognizes online repo?

I made some changes locally, and Github Desktop says "No local changes.  Push 1 commit to the remote."  But when I click on "Push Origin", it acts like I have never done that before.  It brings up the "Publish Repository" dialog.  And if I click "Publish" I get an error and it says the name already exists on this account.  Duh! That's what I want it to connect to!  What am I doing wrong???

11 Replies
Commander Lvl 3
Message 2 of 12

Re: Github Desktop no longer recognizes online repo?

Hi and welcome @bsabiston ,

 

I get that is very frustrating! Let's see if we can get that resolved.

 

If you are familiar with the command line, would you mind running git remote -v for us while inside of the repository?

 

If not, that is not a big problem either! Can you just try to freshly clone the repo from your account and see if the problems persist?


- Mark
Copilot Lvl 2
Message 3 of 12

Re: Github Desktop no longer recognizes online repo?

Thanks for the reply. I’m at work right now, but I’ll try it when I get home.

I don’t think I can freshly clone from my account because then I would lose my local changes, wouldn’t I?
Commander Lvl 3
Message 4 of 12

Re: Github Desktop no longer recognizes online repo?

No hurries, do post back when you're home!

 

What I meant was just freshly cloning it into a different directory for testing purposes. That shouldn't overwrite your changes.


- Mark
Copilot Lvl 2
Message 5 of 12

Re: Github Desktop no longer recognizes online repo?

OK when I run 'git remote -v', it shows this:

origin https://github.com/bsabiston/04_BattleTank.git (fetch)

origin https://github.com/bsabiston/04_BattleTank.git (push)

 

I also cloned the repo into a new test directory, but now what?  Do I have to copy over the changed files from the broken one or is there a way to get it working?

Highlighted
Commander Lvl 3
Message 6 of 12

Re: Github Desktop no longer recognizes online repo?

From my end the things seem to be set up correctly then.

 

I'd think that copying over the changes to a freshly cloned repo is the best course of action here - but I do agree that it isn't an ideal situation.


- Mark
Copilot Lvl 2
Message 7 of 12

Re: Github Desktop no longer recognizes online repo?

I did what you suggested.  Copied my changes over to the newly cloned repo.  And for the past few days it has worked fine. 

 

But today, it broke again.  I try to push my new commit online and it says it wants to publish the repo, like it doesn't recognize the one already there.

 

Why does this keep happening?

Commander Lvl 3
Message 8 of 12

Re: Github Desktop no longer recognizes online repo?

That does not sound good :( . Is this just yourself who constantly commits to the master branch and pushes? Using just GitHub Desktop, or other tools as well? Did you make sure you're still logged in correctly to GitHub? Let us know!


- Mark
Copilot Lvl 2
Message 9 of 12

Re: Github Desktop no longer recognizes online repo?

It's only me.  One computer, I spend about an hour each morning on this project and then commit / push my work.

 

I'm only using Github Desktop.  It's on a Mac running High Sierra 10.13.6.

 

Also, today it worked.  I didn't change anything from yesterday.  I didn't even make any code changes, I just launched Github Deskop and hit the Push button and it worked fine.  So, idk.  At least it isn't broken permanently I guess.  Just sporadically. When it happens again I guess I'll just wait til the next day and see if it feels like working. :)

GitHub Staff
Message 10 of 12

Re: Github Desktop no longer recognizes online repo?

@bsabiston If you run into this issue again it would be great if you could upload a log file from GitHub Desktop -- that should give some more information about what's happening under the hood.

 

To access the log files go to the file menu in GitHub Desktop and select `Help` > `Show Logs in Finder (macOS) or Explorer (Windows)`.

 

The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue.

 

Thanks!