Recursively ignoring files in the entire source tree in subversion

前端 未结 3 1149
故里飘歌
故里飘歌 2020-12-05 01:35

I am not new to Subversion, but I have up till now used Tortoise and never the commadn line. My question is, how do I ignore all files like *.o from the ENTIRE source not j

3条回答
  •  我在风中等你
    2020-12-05 02:32

    As pointed by @hackmaster.a in a comment, the example given in the accepted answer has the side effect of wiping out all previous svn:ignore settings. Using propedit instead of propset doesn't work neither.

    The right way to add multiple files recursively is putting their names in a list separated by new lines in the svn:ignore property set with svn propset svn:ignore "[LIST]" .

    For example:

        svn propset svn:ignore -R "*.pkl
        > *.class
        > Thumbs.db
        > data.tmp" .
    

    Of course the >'s are just the shell prompts.

    This command will change the svn:ignore properties of the . current directory and of each of its sub-folders recursively.

提交回复
热议问题