Why can't Desktop "find" my repository?

A few years ago I installed Github desktop and cloned some repositories (Win10 64 bit), and recently had a disk-melt. I did restore most of my files but AFAIK I did not retrieve any Github files. (I mention this because of the potential for an “unclean reinstall” problem, but there were no Github files on my drive). I just re-installed Desktop, and cloned two repositories. I can see that the file content of the repositories was actually downloaded. When I open the Desktop program, it says “Can’t find…”: it gives the correct location (C:\Users\My Name\Documents\GitHub\Logoori). I press the locate button and enter that folder, and it complains “Failed to execute getStatus: ENOENT”. I try to clone again and it says

Git could not be found at the expected path: ‘C:\Users\My Name\AppData\Local\GitHubDesktop\app-2.6.1\resources\app\git\cmd\git.exe’. This might be a problem with how the application is packaged, so confirm this folder hasn’t been removed when packaging.

I can manually verify that git.exe exists at ‘C:\Users\My Name\AppData\Local\GitHubDesktop\app-2.6.1\resources\app\git\cmd’. It offers to retry cloning which yields the same error message. I then removed the repository, tried re-cloning, and it then says it can’t because the repository folder is not empty (true). Then I delete that folder locally and try again: it tells me that ‘C:\Users\My Name\AppData\Local\GitHubDesktop\app-2.6.1\resources\app\git\cmd\git.exe’ can’t be found (etc.). I close the Desktop program as an added variable and that has no effect. To recapitulate, I installed, cloned, and tried to use, yet it doesn’t work.

Any suggestion as to what the problem (and solution) is? Thanks.

@languagedescriptions it sounds like your local installation of GitHub Desktop may be corrupt.

Could you try performing a fresh installation of GitHub Desktop by following these steps?

Here’s how to do that:

  1. Open File Explorer
  2. Go to %LocalAppData% and delete the GitHubDesktop directory
  3. Go to %AppData% and delete the GitHub Desktop directory
  4. Reinstall GitHub Desktop from http://desktop.github.com

Let me know if that doesn’t get things working.

I think I learned how to corrupt it ;). I did a total wipeout and reboot, reinstalled Desktop and clones the first repository, no problem, then clones the second repository and then everything went bad including the first repository. So I did another total wipeout and reboot, and only cloned one repository. And so far, no problems. It seems to be caused by cloning a second respository (I will experiment to see if it is that specific second repository, or any second repository).

A quick test suggests it is cloning any second repository. Time to re-wipe.