Adding Icon@2x.png to SVN

2020-06-17 09:17发布

问题:

I was trying add the retina icon to SVN but seem to have trouble checking it in.

I tried svn add Icon@2x.png svn add Icon\@2x.png but neither of them works.

Any help will be appreciated.

Thanks RS

回答1:

You need to do this ...

svn add Icon@2x.png@


回答2:

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.

svn add Icon@2x.png@

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:

ls *2x.png | xargs -I x svn add x@


回答3:

wouldn't be better to make it recursive? (Just suggestion for / update of previous answer)

 find . -name "*2x.png" |xargs -I x svn add x@


标签: svn ios4