We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27376
    • 576 Posts
    Is it possible to remove a file from SVN without deleting it from the Filesystem? My current method is to copy the file, remove the original via [tt]$ svn rm [file][/tt] and then move the copy back to the original file name. Is there a faster way of doing this? I’d like to be able to just remove the link to SVN from a file without my 3 step method.

    Thanks!
      • 22303 MODX Staff
      • 10,725 Posts
      Work directly on the repository if you just want to remove it from the repository; otherwise, unless you have modified that file locally, there is no way to prevent the file from being deleted from your local working copy. In other words...
      svn delete [URL]

      However, keep in mind your next svn update will still delete that file from your working copy...