SVN: Ignore some directories recursively

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

    For example the folder structure:

    Project/
    Project/dist/
    
    cd Project
    svn propset svn:ignore '*' dist/
    svn ci -m "content of dist ignored"
    

    It's good to do a svn delete of dist content before the ignore command, so for branches dist will be empty.

    Worked for me, tested today. Here is the page explaining it a bit

提交回复
热议问题