I'm migrating a VSS repository to SVN and inadvertently included all of the _vti_cnf, *.scc files in the first check-in. I'd like to remove these from SVN. (Not permanently, of course - just in the HEAD). The application in question is quite large, and finding and deleting these files on a folder-by-folder basis will take forever.
Suggestions? There must be some obvious way to do this, but the proximity of the weekend is interfering with my higher brain functions.
Jonas' answer should woirk fine. Maybe you are getting conflicts because you're deleting them on file system level, bypassing Subversion's control?
If you can use TortoiseSVN, the following works for me (=I get the necessary commands in the context menu):
Done!
Usual disclaimer when giving version control advice, be careful, have backups, I'm not taking any responsibility etc. etc.
In a windows command prompt you can perform a recursive file search with 'for' and invoke 'svn delete' for each matching file,
C:\> for /r %i in (abc*def.sql) do svn delete %i
NB: Remember that in a batch file you'll need to replace %i with %%i.
To find out about all the other flags you can use with 'for' (it's the swiss army knife of searching and parsing) use the help command,
C:\> help for
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