Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should a website's images folder and images be stored in SVN repository?

I'm currently importing all of our PHP websites into SVN repositories. Each site has a images folder which contains all the sites images. The images are updated quite frequently as most of them are offer graphics.

Should the images (binaries) be stored in the repository?

The other issue is that they are updated all the time. How would you update images frequently that are in your working copy as you can't edit the source in a text edit like you would a source file they would need to be replaced with updated images, how would the version system handle this?

like image 597
Camsoft Avatar asked Dec 05 '25 10:12

Camsoft


2 Answers

SVN is capable to handle binary files, including (but not limited to) images. You can use it like a normal text file. The only difference is once changed, it's changed as a whole, not as a patch like normal text files.

like image 155
nanda Avatar answered Dec 06 '25 23:12

nanda


If you want to see a "SNAPSHOT" of your site in a given time (Track the appearance in history) then the answer is YES :).

like image 25
Chathuranga Chandrasekara Avatar answered Dec 07 '25 01:12

Chathuranga Chandrasekara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!