I have a website completely gestionned by Git. In a word, I develop my site web on my local place and when I reach a result which deserves to be online, I simply enter git push
(without passwd thanks to public key, or any other thing) and 3 seconds later my new website is online.
In fact, I am completely fond of this system and I want to use Git (which I am learning for about 4 days) as much and as smartly as possible. For a lot of things.
For the website topic, what is bothering me is that I need "big" files (= which is not source code) such as images (logo, background, ...) or PDF files (CV, scientific papers). If I understand well, these files are just saved from a version to the next as the "deltas" are not accurate. In fact, the old one are usually useless (who cares about the old back grounnd or the from now on uncomplete CV ?) and are very likely to take a lot of memory (if I update my CV at each event, as an example) with the time going.
So for this project, and for more after, I want to have a git directory with IN IT :
- the files of the project (mostly source code) I want to use as all common git files of a repository, and have a back trace of it with the possibility of backup
- a directory (let's call him data/
) which is updated at each commit + push
but of which former files are since then definitely lost on the distant git repo
The idea is to :
- avoid the memory explosion
- allow people who makes a pull (even for a former branch) to have by this one fact a working local project, but with the latest data/
(the new logo and new CV on the former website for our study case)
- makes my life simplier and my girl friend happier
All ideas are welcomed, but please notice that it is in my philosophy to prefer high level solutions.