I’ve recently inherited several projects. Luckily they were already under version control but the directory structure wasn’t using our normal ’standard’. After digging into the awesome TortoiseSVN help file (recommended reading!) I learned a few new tricks:
Fixing Ignored Files
We’ve all run into this one before - you have a file somone mistakenly commited (.log files in my case). From the TortoiseSVN help:
If the files are already in the repository, you have to do a little more work.
- Hold the Shift key to get the extended context menu and use TortoiseSVN > Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy.
- TortoiseSVN > Commit the parent folder.
- Add the file/folder to the ignore list so you don’t get into the same trouble again.

Moving Files within the Repository
I’ve also got some folders scattered around the repository containing documentation. Ideally these should all live under our /doc directory. But how to move these without loosing their history? Again - from the TortoiseSVN help:
The easiest way to copy files and folders from within a working copy is to use the right-drag menu. When you right-drag a file or folder from one working copy to another, or even within the same folder, a context menu appears when you release the mouse.

Every time I dig into the TortoiseSVN help I learn something new!

You May Also Enjoy Reading:
2 Comments
Thanks. I didn’t know about the “Delete (keep local)” option, but it’s one I’ll be abusing I’m sure.
Jim - Thanks. Delete (keep Local) is Awesome. Thanks for that tip. I wish I had had it yesterday.