Missing folder and files in https://github.com/appleiifanclub/mame repository #185975
Replies: 5 comments
-
|
If the images folder and files were deleted, they can only be recovered if they still exist in the repository’s commit history. Check the commit history of your fork on GitHub and look for an earlier commit where the images/ folder existed; if found, you can restore it by reverting that commit or by checking out the files from that commit and committing them again. If you worked locally, you can also inspect your local Git history or reflog to recover the files and push them back to GitHub. However, if the folder was never committed (for example, files were uploaded but not committed, or later overwritten by syncing with upstream using a hard reset or force push), then GitHub cannot recover them, as Git only tracks committed data. In short, recovery is possible only through Git history; otherwise, the files are permanently lost and must be reuploaded from a backup. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, this usually happens when the files were never actually committed to the repository, or when they were added to a branch that later got changed or deleted. Check if the files were ever committed. If you used git locally, check your computer. git statusIf the images folder shows up as untracked or modified, you can still commit it: git add images
git commit -m "Add images folder"
git pushIf you committed the files, but they disappeared later, check the branch. Also check the commit history for deletions. If the files were uploaded directly on GitHub and not committed, recovery is not possible. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
Don’t panic — in almost all cases on GitHub, files don’t just disappear permanently. They’re usually still recoverable from Git history. Here’s how to approach this calmly and systematically. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
files or folders are missing from your GitHub repository view, here are the most common causes:
git status # see what's staged/unstaged
touch myfolder/.gitkeep
git log --diff-filter=D --name-only # shows deleted files |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I forked the official MAME repository into my GitHub account
appleiifanclubas MAME, I then created animagesfolder and have upload some image files into that folder. But today I found that theimagesfolder was missing and all the images files were gone.How do I recover that
imagesfolder and all the image files?Beta Was this translation helpful? Give feedback.
All reactions