SVN delete --keep-local

前端 未结 3 2017
慢半拍i
慢半拍i 2021-02-05 07:51

I\'m working on a project where someone has checked in some folders and files that are not suppose to be in the repository and are suppose to be on our local, I try to delete th

相关标签:
3条回答
  • 2021-02-05 08:13

    As wcoenen and Dave Markle said, you have an old version that doesn't have the --keep-local option. To be more specific, this option was introduced in version 1.5.

    As a workaround:

    1. Copy the files out of your working copy
    2. svn delete
    3. svn commit
    4. Copy them back into the working copy
    5. Add them to svn:ignore so they don't get checked in again!
    0 讨论(0)
  • 2021-02-05 08:15

    Please note that delete --keep-local only keeps the deleted files/folders in your local working copy.

    When your coworkers perform their next update, the affected files/folders will be deleted in their working copies.

    The keep-local option isn't as useful as a lot of people seem to think it is.

    0 讨论(0)
  • 2021-02-05 08:17

    Upgrade to the latest version of the SVN client. The version you have installed doesn't have the --keep-local option yet. This feature was added in SVN 1.5.

    0 讨论(0)
提交回复
热议问题