Correct structure and way of website versioning

Posted by Saif Bechan on Stack Overflow See other posts from Stack Overflow or by Saif Bechan
Published on 2010-05-15T23:44:08Z Indexed on 2010/05/15 23:50 UTC
Read the original article Hit count: 229

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.

© Stack Overflow or respective owner

Related posts about version-control

Related posts about best-practices