how can I ignore a file already added to a svn repository?
I like to exclude the file config.php:
$ svn st
M .
M config.php
M adminfunctions.php
So, I use:
$ svn propedit svn:ignore .
And added config.php to the list.
Then, if I do another svn st, I get the same of the first time:
$ svn st
M .
M config.php
M adminfunctions.php
Wouldn´t the config.php be excluded just now?
Thanks in advance!
svn:ignore only affects files that have not been added yet.
So in your case you have to delete the files from repository with svn del
— don't forget to copy them temporarily to another location). After you copy the files back into the original directory svn will not mark them as new (and try to add them).
EDIT:
Alternatively, as commented by @Blake, you can use --keep-local
option when you do a svn del
instead of copying files to another location.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With