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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:31:57+00:00 2026-05-26T03:31:57+00:00

Variations of this question have been asked before, but it seems like the issue

  • 0

Variations of this question have been asked before, but it seems like the issue of disturbing other team members hasn’t been mentioned. In existing posts (see How to "unversion" a file in either svn and/or git) the accepted answer is generally to run svn rm FILE or svn rm --keep-local FILE, and then set the svn:ignore property if desired. I’ve spent the last 20 minutes playing around with this (checking out a repo in two places, deleting a file from one, then updating the other, etc.). Here’s what I found (I’m using SVN 1.6.16):

First of all, from what I can tell the –keep-local flag doesn’t affect what happens to everyone else who is going to update from the repository afterwards. To them it looks the same as if you had just done a regular svn delete (none of the subversion documentation I have seen mentions this explicitly – maybe it should be obvious that you’re still doing an svn delete operation and that “keep local” will only affect things on the local side, but it wasn’t necessarily obvious to me).

So there are two cases – 1. team member A deletes a file that team member B had no local modifications in or 2. team member A deletes a file that team member B did have uncommitted local changes in.

In 1, after the delete takes place B’s file has been deleted. He now has to recover it on his own (i.e. svn merge -rHEAD:XXX FILE; svn revert FILE to get version XXX of FILE back into the working directory and have it not be re-committed at next commit)

In 2, B sees a Tree Conflict on updating, and FILE now has a status of A + C with the message “local edit, incoming delete upon update” below it. At this point, I’m not exactly sure what the recommended solution is. What I did is copy FILE somewhere else, just to be safe, and then ran svn revert FILE. It ended up being unnecessary because FILE still exists unversioned in the working directory with all local modifications intact. But I don’t know how much I trust this, as I’ve had my uncommitted changes erased by svn revert in other scenarios.

tl;dr: Is it really the case that only way to un-version a file in SVN is to delete it from the working directory of everyone else on the team and make them retrieve it themselves? Am I using –keep-local wrong, or missing another similar option?

  • 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-26T03:31:58+00:00Added an answer on May 26, 2026 at 3:31 am

    You have to add all the files you are deleting to the ignore list ( easy with TortoiseSVN -> use Delete and add to ignore list option ) and commit that.

    Now do the delete.

    Another option is to do a svndumpfilter, as mentioned here: How do I remove a file from svn versioning without deleting it from every working copy?

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

Sidebar

Related Questions

Variations of this question have been asked, but not specific to GNU/Linux and C.
Variations of this question have been asked here and here , but it appears
I know that variations on this question have been asked, but I've tried all
I'm sure some variation of this question has been asked before but all other,
I see variations of this question have been asked a couple of times, but
I know there have been plenty of variations on this question before, but none
I know, variations of this question had been asked before. But my case may
Variations on this question have been asked, but not this specifically. I have a
I know this question has been asked in several variations before, but my question
It seems that others have had variations on this question, but from what I

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.