在特定文件夹中的任何内容上设置 svn:ignore 属性(但不是文件夹本身)
我有这个文件夹
public/assets/dvd_files/dvds/
,我想 svn 忽略其中可能出现的任何内容。我认为这会起作用:
svn propset svn:ignore * public/assets/dvd_files/dvds/
但我收到此错误消息:
svn: Cannot set 'svn:ignore' on a file ('Capfile')
任何人都可以告诉我我在这里做错了什么吗? 干杯,最大
I have this folder
public/assets/dvd_files/dvds/
and i want to svn ignore anything that might appear in it. I thought that this would work:
svn propset svn:ignore * public/assets/dvd_files/dvds/
but i get this error message back:
svn: Cannot set 'svn:ignore' on a file ('Capfile')
Can anyone set me straight as to what i'm doing wrong here?
cheers, max
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需要在 * 周围加引号即可阻止 shell 将其扩展为当前文件夹中所有文件的列表。
随着 * 展开,您正在有效地运行,
这被解释为将文件 file2 上的 svn:ignore 的值设置为“file1”
You just need quotes around the * to stop your shell from expanding it into a list of all the files in the current folder.
With the * expanded, you're effectively running
which is interpreted as setting the value of svn:ignore to "file1" on the file file2