Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub for windows forgot all repositories

Today GitHub for Windows has suddenly forgotten all repositories on my pc. Has anyone seen anything like this? (It is the latest version, running on Win7 pro.)

like image 562
Leo Avatar asked Feb 09 '15 12:02

Leo


People also ask

How do I restore a git repository?

In the top right corner of GitHub.com, click your profile photo, then click Your organizations. Next to the organization, click Settings. In the left sidebar, click Deleted repositories. Next to the repository you want to restore, click Restore.

Where does GitHub Desktop store data?

By default, GitHub Desktop creates a GitHub folder inside your Documents folder to store your repositories, but you can choose any location on your computer. Your new repository will be a folder inside the chosen location.

How do I view repositories on GitHub desktop?

On GitHub.com, navigate to the main page of the repository. Above the list of files, click Code. Click Open with GitHub Desktop to clone and open the repository with GitHub Desktop.


2 Answers

It turned out to be a bug in GitHub for Windows. At the moment I do not have more details, but I have information about how to fix it if someone else needs that. (I hope the problem will soon be gone.)

Update: To avoid confusion I add the info I got here: To resolve this, you can go to %LocalAppData%\GitHub and delete the cache.db file located there. GitHub for Windows will recreate that file, and this should get things working again. You'll need to add your repositories again, though. You can drag-and-drop them in, or use the 'scan for repositories' button in the options menu.

like image 166
Leo Avatar answered Oct 25 '22 07:10

Leo


Just dragging the folders from explorer to the Github window will add them back.

like image 26
Gabriele Petrioli Avatar answered Oct 25 '22 07:10

Gabriele Petrioli