SVN: Ignore some directories recursively

前端 未结 15 1448
粉色の甜心
粉色の甜心 2021-01-30 11:55

I don\'t want any directory named build or dist to go into my SVN no matter how deep in the tree it is.

Is this possible? In git I just put

15条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 13:00

    It is possible to ignore build and dist dirs by removing the directories from version control. The trick is to use the --keep-local option to leave the directory in the working copy. For example:

    svn rm dist --keep-local
    svn ci -m'removed build directory from version control'
    

    The directory will no longer be tracked by subversion but it will still be there in your working copy to hold compiler output, etc.

    cheers, joe

提交回复
热议问题