Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6339131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:35:17+00:00 2026-05-24T19:35:17+00:00

I just caused a problem that I’m having trouble finding a solution for. I

  • 0

I just caused a problem that I’m having trouble finding a solution for. I have been working on a year old Ruby On Rails app, which is stored in a Git repository.

I deleted many files, several commits ago, but never did a git rm filename to remove the files from the repository.

Recently I did a git stash save --keep-index, git stash drop to discard some bad code and go back to the last commit. However when I did this, the deleted files which were not removed from the repository have been restored.

Now my project is crashing because of files that exist, which should not. Is there any way I can re-delete the files, or get a list of the deleted files which were restored?

I tried googling this problem, but google helpfully returns results for “git restore accidentally deleted files” which is the opposite of what I am looking for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:35:17+00:00Added an answer on May 24, 2026 at 7:35 pm

    A stash becomes a commit node in the graph, and just because you dropped it doesn’t mean it’s gone forever. It’ll be garbage collected eventually, but as long as you dropped it relatively recently, you should be able to find it and add it back into your “regular” history as either a stash or a commit. Just look around for how to recover dropped stashes or how to find dangling/lost commits. Something like this, this, or this, perhaps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The problem im having is that I have a table that when a user
EDIT: Just to make things clear, this problem was caused by a typo in
Just looking for the first step basic solution here that keeps the honest people
I have just changed my WPF application from .Net3.5 to .Net4. Doing this caused
I'm working on a c# service application and i have this problem where out
This is a problem that has been eating at me for a while, and
I just had a long debug session that was caused by a stale interface
ive got a really weird problem. i have no clue why its not working.
I have been working on a website using MVC Preview 1 since it came
I have been unable to determine the cause of this problem, so I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.