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

  • Home
  • SEARCH
  • 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 6791089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:48:14+00:00 2026-05-26T17:48:14+00:00

A developer added an image directory on the server without adding that folder to

  • 0

A developer added an image directory on the server without adding that folder to the .gitignore file.
When I did a git pull it pulled those files (hundreds of files). I added the folder to the .gitignore on the server but not my local system. I then deleted the files locally (permanently).
When I do a git status all those deleted files still show up. How can I suppress them from showing up?

Update:
thanks for all the great help. To make sure there is no misunderstanding:
I do want to keep the files on the server; I just want to remove them from git.

  • 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-26T17:48:14+00:00Added an answer on May 26, 2026 at 5:48 pm

    Since they’ve already been committed to the repository it’s a bit more work, but still doable.

    The best walkthrough that I’ve found on this procedure is Github’s guide on Removing Sensitive Data. Since you want to keep the files, you have a step to do before and after the guide.

    Before you start this process, copy the files out of your working directory. Once you have finished purging the repo of them, copy them back in and add them to your .gitignore.

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

Sidebar

Related Questions

I have Eclipse 3.4.2 installed on Windows with subclipse. Another developer added an SVN
I am working with the sample Home application project on http://developer.android.com/resources/samples/Home/index.html I've added another
http://developer.yahoo.com/javascript/howto-proxy.html Are there disadvantages to this technique? The advantage is obvious, that you can
http://developer.yahoo.com/yui/button More specifically, I want radio buttons. that can be checked/unchecked.
I have a client requesting an animated/panned image be added to their website. Basically,
I have a PHP file that generates a Media RSS file for the embedded
I designed a small website last year in visual web developer. I added a
SVN won't download newly added files but will update existing. Developer B adds 3
As an OO developer, maybe I have difficulty seeing its value. What added value
I inherited a project from another developer who used jQuery UI. I've added a

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.