SVN: Ignore some directories recursively

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

    Since there seems to be no solution for this probably common problem, i would like to share our solution. As the others already made clear, you can either use the svn:ignore property, this applies to a single directory (and therefore not for new ones), or you use global-ignores which applies to a single user (but doesn't belong to the repository).

    To make life a bit easier i created a reg file named Settings.Svn.reg and added it to the root of the repository. Now everybody can doublecklick this regfile once, and has the settings done.

    REGEDIT4
    
    [HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config\miscellany]
    "global-ignores"="obj *.suo *.bak *.pdb *.user *.Cache*"
    

    I would really appreciate a solution within the SVN repository, so if somebody knows, would you care to share it?

提交回复
热议问题