SVN: Ignore some directories recursively

前端 未结 15 1323
粉色の甜心
粉色の甜心 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:36

    Create a file and add your ignores into it

    ingore-list:

    file1 
    directory1
    file2
    etc...
    

    then apply the following command

    for n in directory; do svn propset svn:ignore -F ignore-list $n; done
    

    directory is name of your directory, you can sub categorize as well directory/sub-directory. Or use * to note current directory you are under.

    This is assuming you are using bash as your shell

提交回复
热议问题