Correct structure and way of website versioning
- by Saif Bechan
Recently I use GIT to version my website. It makes it all really easy to see how my project develops and I always have save backups on different places on the web.
Now my main question is if it is recommended to version your whole root of the website. I have a basic structure that looks something like this:
/httpdocs
/config
/media
/application
index.php
.htaccess
1) Should I use the /httpdocs folder to version, or should I use the content of the folder.
2) Is it recommended to version the media folder.
In the media version I have several images for the overall layout, and some other images for the website. These imagas can be quite large. I work on these images from time to time and so they change. I hardly never need the old image again, so is this not just taking up precious storage space.
I would highly appreciate just some basic recommendation on this topic.