Which folder contents can be deleted to reduce the size of my project?

It is easier to list files you must not delete :slight_smile: Everything outside these folders is generated, and as long as you don’t deliberately put your files outside, you shall be fine after deleting everything except these. I have set up svn:ignore so that only these folders end up in the repository, and so far the checkout has gone well on two fresh machines.

  • / (project files etc reside in the root)
  • Saved/Config
  • Config
  • Content
  • Source
  • Intermediate/ProjectFiles

There are two things to mention, though. If you accidentally delete Intermediate folder, you can always generate new project files. In fact, I do not have ProjectFiles in the repo at all, because VS Solution paths are specific to the machine, and I am totally fine with generating my own project files. The only thing I commit from it is the filter (.vcxproj.filters), which contains the project structure. I need this because added source files do not just pop up in Visual Studio, they need to be referenced in the filter. You might want to exclude machine-specific Editor settings folders, like Saved/Config/WindowsNoEditor, just for clarity. Take a look at my ignore list. Hope that helps.
For root directory:

*.opensdf
*.log
*.sdf
*.sln
*.suo
*\Logs
Binaries
DerivedDataCache
Intermediate

For /Saved:

Autosaves
Backup
Cloud
Logs

Always keep in mind that ignored files will get deleted on the server upon commit. However, you can use ignore-on-commit or svn:global-ignore (really misleading name) to keep the files in the working copy but disable synchronization. The size of your repo cannot be easily reduced, however, as it stores all revisions as a whole. Your only option to remove these fles from existing repository is svndumpfilter. You can read about this process here, for example.

1 Like