SVN: Ignore some directories recursively

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

    In subversion 1.8 over, it is possible to set global-ignores for current repository.

    svn propset svn:global-ignores build .
    svn propset svn:global-ignores dist .
    

    Also you can create a folder named .svnignore, and write conditions.

    build
    dist
    

    remember one condition per line, setting build/* or dist/debug is in vain. Then do the command:

    svn propset svn:global-ignores -F .svnignore .
    

提交回复
热议问题