将 Icon@2x.png 添加到 SVN
I was trying add the retina icon to SVN but seem to have trouble checking it in.
I tried
svn add [email protected]
svn add Icon\@2x.png
but neither of them works.
Any help will be appreciated.
Thanks
RS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你需要这样做...
You need to do this ...
不管你如何转义“@”符号,发生这种情况的原因是因为 SVN 认为最后一个“@”是指定修订号(@REV 格式)。要解决这个问题,您需要在文件名末尾添加另一个“@”符号。
如果您需要添加多个文件,手动输入所有文件可能会很麻烦,但您可以使用 xargs 来自动执行此操作:
It doesn't matter how you escape the '@' symbol, the reason this happens is because SVN thinks the last '@' is to specify a revision number (@REV format). To get around it you need to put another '@' symbol at the end of the file-name.
If you need to add multiple files it can be a pain to type them all in manually, but you can use xargs to automate this:
让它递归不是更好吗? (只是对之前答案的建议/更新)
wouldn't be better to make it recursive? (Just suggestion for / update of previous answer)