如何设置 svn:ignore 具有多个值? [英] How to set svn:ignore with multiple values?

查看:27
本文介绍了如何设置 svn:ignore 具有多个值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想使用多个值、file1file2 为目录 dir1 设置 svn:ignore 属性em> 和 file3.如何在不使用文本编辑器(设置属性值)的情况下通过命令行执行此操作?

Let's say I want to set the svn:ignore property for directory dir1 with multiple values, file1, file2, 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

如果你想从另一个命令传递一个列表,试试 xargs.不幸的是,svn 命令不允许使用 -F -stdin 读取.

If you want to pass a list from another command, try xargs. Unfortunately, the svn command doesn't allow reading from stdin with -F -.

这篇关于如何设置 svn:ignore 具有多个值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆