Tuesday, January 29, 2013

How to remove missing files from svn?

I accidentally removed files from my local machine. But they are listed on SVN repository. Hence, those images are showing as '!' in svn status.
To remove those missing files, just run the below command:
svn status | grep '^\!' | cut -c8- | while read f; do svn rm "$f"; done

Then just commit your changes. Fixed.


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide

No comments: