Deleting files

Posted under » Version Control on 14 Aug 2019

Deleting a file makes the status clearer with less clutter.

svn delete myfile 
svn delete myfile --keep-local
svn delete myfile --force

However, it is harder to delete than to add files as somehow wildcards does not work.

When you svn status, you will see all the !s. How do you delete all those in one go? What you can do is use good ol' bash.

svn status | grep ^! | awk '{print $2}' | xargs svn delete

Read more about ignoring files.

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css