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 104217
In Process

The Archive Base Latest Questions

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

This sounds like a look-up-in-the-manual question to me, but I can’t find it. Suppose

  • 0

This sounds like a look-up-in-the-manual question to me, but I can’t find it. Suppose we have a repository with files and directories in it that shouldn’t be under version control but rather should be on the ignore list (such as Eclipse files .settings, .project, generated documentation files – things that should never have been added and committed in the first place). What is the best way of deleting these files from the repository and moving them straight onto the ignore list?

Update: The accepted answer below details a good way of setting up your local subversion repositories to avoid the problem described above. However, if you still have to solve this, it seems that you have to do some manual fiddling to get files/folders out of the repository and onto the ignore list.

For instance, for the .settings folder, first add this to the global ignores list and then run the following command:

$REMOVE='.settings' cp -r '$REMOVE' /tmp/ && \ svn rm '$REMOVE' && \ svn commit -m 'Moving to ignore list' '$REMOVE' && \  mv '/tmp/$REMOVE' . 

This copies the file/folder to a temporary location and then removes it from SVN and commits the remove – finally the file/folder is copied back, but as it is now on the ignore list it will be ignored by SVN.

  • 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. 2026-05-11T01:14:49+00:00Added an answer on May 11, 2026 at 1:14 am

    There are two ways with subversion, one is specific to the user and the other is actually maintained in the repository, and therefore affects everyone.

    For a list of globally ignored files (exclusive to each user/machine), you need to edit the subversion config file and alter the global-ignores directive in the miscellany section. The config file is documented and the syntax is very simple. For example:

    global-ignores = *.o 

    On a UNIX system, the config file is found at ~/.subversion/config. On a Windows system, the config file is found at %APPDATA%\Subversion\config or in the registry under HKCU\Software\Tigris.org\Subversion\Config.

    Once you set this up, you will never accidently add these files to your repository, nor will the files show up as ? in your svn stat commands. If your repository already has these files, it probably won’t hurt to leave them there as they are, but changes and modifications to the files will be ignored in the future.

    To set this up on a per-project basis (which will affect anyone checking out the project), you would add the svn:ignore property to the project directories where files are likely to be stored. For example, to exclude a directory named build from the top-level of your project, you would do something like this:

    svn propset svn:ignore 'build' . svn commit -m 'project ignores build directory' . 

    From now on, the build directory in your project will be ignored by subversion. For more on this, see the documentation at http://subversion.tigris.org/ or issue the svn help command for more information.

    EDIT: Added more based on comment… dunno how I missed that part of the original question!! Sorry 🙂

    Unfortunately, removing the files that you now want ignored from the repository is a manual process, although, if you know exactly which files they are, you could write a little script that people having this problem could run (in the future, the svn:ignore property would keep them from ever having to repeat it, and it has the advantage of being able to be easily modified when the need arises).

    To remove the files that you don’t want from the repository, but keep the local files around, follow these steps:

    1. Create either your global-ignores entry or add the svn:ignore property to your repository and commit.
    2. For each file that you want to remove from the repository, issue this command: svn rm --keep-local filename
    3. Once you’ve issued the svn rm command for each file, commit your working copy.

    Because this may have the side-effect of deleting files from people’s current working copies if they haven’t updated their config files, I highly recommend using the svn:ignore property on the repository directories. That way, when people update, they won’t unexpectedly have files deleted because they haven’t modified their global-ignores parameter yet.

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

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer From the PIL docs: getpixel im.getpixel(xy) => value or tuple… May 11, 2026 at 11:35 am
  • added an answer Use GROUP BY: select value, count(*) from table group by… May 11, 2026 at 11:35 am
  • added an answer Based on your edit, I think you're looking for this:… May 11, 2026 at 11:35 am

Related Questions

This sounds like a look-up-in-the-manual question to me, but I can't find it. Suppose
Sorry if this sounds like a really stupid question, but I need to make
I know this sounds like a really obvious question, but it's proving harder to
I'm sure this sounds like a n00b question, but how do I add sub
One of the appropriate uses for sqlite3 is in-memory databases. This sounds like a
Sounds like a weird question, but say I have something like this: $.post( /myajax.php,
This might sound like a little bit of a crazy question, but how can
This might sound like a stupid question, but google didn't help me. Is there
This is going to sound like a silly question, but I'm still learning C,
This sounds dumb, but I can't get it to work. I think i just

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.