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

Should you want to restore the file, go to tortoise. Go to log. Right click on the deleted file and select "Copy to working copy..."

Read more about ignoring files.

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS data