So, basically, I’ve got a load of code that I want to add to subversion. The problem is that we have a repo for this project already, with old code in it.
Now I want to add my current code base to it – to “start again” as it were. I don’t want to add source control to my current project because I don’t want it to download the latest version of the old code.
So, I need to delete or clear my current repository, add source control to the folder with the new code in it and commit all those files.
How can I do this? I have ssh access to the server with subversion on it and am connecting (through Coda) using svn+ssh.
Thanks
ps: I couldn’t figure out where was best to post this. Feel free to migrate to a better site if you think.
You can delete the contents of the existing repository without checking it out. From the command line, I’d first get a list of the files/directories at the root of your project:
Then delete them (making sure to specify a log message):
Or, alternatively, you can delete the main directory (traditionally called “trunk”) and recreate it:
Either way, you’ll end up with an empty trunk directory that you can check out quickly and add your files to.