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.

All repositories reported as missing

See original GitHub issue

Describe the bug

Git Desktop can’t find any of my existing repositories. I cannot commit to any one of them, app reports it can’t find them, but they are all present and git folders exist too.

Version & OS

Git Desktop 2.6.3 on Windows 10 (1909)

Steps to reproduce the behavior

  1. Go to Current Repository selector
  2. Click on any one of the repositories on the list.
  3. See the error

Expected behavior

Expected the repository to be selected and its changes to be displayed for commit.

Actual behavior

Repository won’t load, says it Can't find "<repo_name>". Also, it shows a It was last seen at "<repo_path>" message.

Screenshots

image

Logs

Did not locate related errors in the logs, attached below.

2021-02-18.desktop.production.log

Additional context

Tried running git status on the command line, to no success.

fatal: not a git repository (or any of the parent directories): .git

It says not a git repository although the git folder exists, and also does not seem to be corrupted.

Tried deleting an unchanged local repo e re-cloning it, it works (for a while).

remote: Counting objects: 70, done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 70 (delta 33), reused 0 (delta 0)
Unpacking objects: 100% (70/70), 391.15 KiB | 73.00 KiB/s, done.
Updating files: 100% (57/57), done.

But after some seconds, it will fall into the same can't find "repo_name" error.

Also tried reinstalling the Git Desktop App, it did not seem to help.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
stevewardcommented, Feb 18, 2021

@jairoalves you can drag-and-drop multiple repositories into GitHub Desktop to add them. That may be quicker if you need to add a number of repositories.

We have seen cases like this in the past where repositories have been lost after updating (see https://github.com/desktop/desktop/issues/10548). Did this happen after the application updated?

0reactions
JimHokansoncommented, Apr 13, 2022

I had to do some command line work so I recently added a SSH key and installed Git for Windows and did some global config edits (Using windows git client, what I thought was the same as my GitHub account info). Suddenly many of my private repos were not found (repos I had not touched with the git command line) and when I tried to manually add them GitHub Desktop said they weren’t git repos. Fortunately, I updated GitHub desktop and then it prompted with with warnings for these repos - something to the effect of the repo might be unsafe and that it is from another user and wanted to know if I should add the repo to a trusted list. Fortunately that seems to have fixed the problem. Maybe the new update truly fixed the problem or maybe it reset some state. If it is the latter, I wonder the errors about a missing repo or the folder not being a repo are, in some cases, this untrusted repo case, and the error handler is too generic … (i.e., something went wrong, repo must be missing).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repositories are missing or not showing as expected on Red ...
On Red Hat Satellite 6, repositories are missing or not showing properly as expected. Repositories are unavailable, even after having valid ...
Read more >
All files of GIT repository are marked as "missing" and "new file ...
I use GIT 2.17.1 and Sourcetree 2.6.9. In my uncommitted changes all files of my repository are marked as missing and also marked...
Read more >
Repository is missing after update - GitLab Forum
We've seen recent reports of unpatched, publicly accessible GitLab instances having Git repository data encrypted by a ransomware attack.
Read more >
Azure Devops - Repo Missing - Visual Studio Feedback
I am admin for a project in organization and created all the repos in devops. While setting the permissions for the default team...
Read more >
Satellite 6.11.3 - Missing repositories on hosts : r/redhat - Reddit
Hi all, I'm in a bit of a pickle with our Satellite installation, several of our users have reported having lost multiple repositories...
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