SVN: Ignore some directories recursively

前端 未结 15 1294
粉色の甜心
粉色の甜心 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 12:44

    svn propset --recursive svn:ignore svn_ignore_rules .
    

    where svn_ignore_rules is a file containing the ignore rules -- one per line

    Of course you have to re-run it every time you add a new directory to your repo

    svn_ignore_rules can also be considered to be checked into the repo, to be re-useable by other users having write access to the repo

提交回复
热议问题