.svn using a lot of disk space

Today I realized that the hidden .svn folders in my versioned folders are eating up ~ 16 GB of hard disk space. I use an SSD, so that's pretty much it. Do I really need these huge subfolders? As far as I understand, they are used for administration, but why are they about the same size as the folder under version control?

Thanks!

+4
source share
2 answers

These folders are required if you want to use the SVN version control system. They are used to track changes to your local version, to capture your work and control (ultimately, merging with your information) upstream.

If you no longer want to use version control, you can delete all .svn folders. If you don't mind saving the story, you can do a clean check, delete the .svn folders, and then create a new repository.

+2
source

The .svn/text-base/ directories contain modified versions of the version control files. This explains the duplication and similar size of directories outside of .svn . These files allow you to optimize some operations (for example, diff).

The benefits of this approach mentioned in the documentation include:

checking network availability for local changes and difference reports, network recovery of changed or missing files, more efficient transfer of changes to the server

+2
source

Source: https://habr.com/ru/post/1492952/


All Articles