• Home
  • Subversion Hosting
  • Documents
  • Contact Us
  • Members Login

Ignore files which are already versioned

If you accidentally added some files which should have been ignored, how do you get them out of version control without losing themЁ Maybe you have your own IDE configuration file which is not part of the project, but which took you a long time to set up just the way you like it.

If you have not yet committed the add, then all you have to do is use TortoiseSVNRevert... to undo the add. You should then add the file(s) to the ignore list so they don't get added again later by mistake.

If the files are already in the repository, you have to do a little more work.

  1. Move the file to somewhere safe, not inside your working copy.

  2. TortoiseSVNCommit the parent folder. TortoiseSVN will see that the file is missing and you can mark it for deletion from the repository.

  3. Move the file back to its original location.

  4. Add the file to the ignore list so you don't get into the same trouble again.

If you need to remove a whole folder/hierarchy from version control, the procedure is different again.

  1. TortoiseSVNExport the folder to somewhere safe, not inside your working copy.

  2. TortoiseSVNDelete the folder from your working copy.

  3. TortoiseSVNCommit the deleted folder to remove it from the repository.

  4. Move the exported folder back to its original location in your working copy.

  5. Add the folder to the ignore list so you don't get into the same trouble again.

All Plans Include

All plans free for 2008
Online management tools
Access control lists (ALCs)
Read only or read write users
Secure HTTPS connections
Data mirrored onto backup servers
Disk usage reporting
Online invoices & payments
Unlimited support
Click for Free Subversion Hosting