Let's say I want to set the svn:ignore property for directory dir1 with multiple values, file1, file开发者_Go百科2, and file3. How can I do this via command line, without using a text editor (to set the property value)?
Type exactly like here with line breaks:
svn propset svn:ignore "file1
file2
file3" dir1
If you want to pass a list from another command, try xargs.
Unfortunately, the svn command doesn't allow reading from stdin with -F -.
One line solution:
svn propset svn:ignore "file1"$'\n'"file2"$'\n'"file3" dir1
Adding multiple entries is much easier. Use the following command:
svn propedit svn:ignore .
This will open a text editor. Now you can add multiple entries easily.
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
In powershell:
$ignore = "*.dll`n*.xml"
svn propset svn:global-ignores $ignore .
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论