How to set svn:ignore with multiple values?

前端 未结 5 1534
别那么骄傲
别那么骄傲 2020-12-29 01:27

Let\'s say I want to set the svn:ignore property for directory dir1 with multiple values, file1, file2, and file3

5条回答
  •  礼貌的吻别
    2020-12-29 01:43

    Use:

    cat > ignorelist << END
    file1
    file2
    file3
    END
    
    svn propset svn:ignore -F ignorelist dir1
    

    Or without an external file, and assuming you're on Linux or a system with /dev/fd:

    svn propset svn:ignore -F /dev/fd/0 dir1 << END
    file1
    file2
    file3
    END
    

提交回复
热议问题