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???
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?
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.
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?
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.
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?
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!
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. :)
@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.