At the moment I am using SVN for my projects, with a folder structure like so:
/trunk
/design
/flash
/resources
/scrap
/www
I keep all of the website source files (psds, etc) inside the design
folder, which adds up to few hundred MB or more. I do this because I am usually the only developer on a project and I regularly switch between two workstations and always want up-to-date resources. I generally never use branching (with SVN).
When I deploy to a webserver I checkout /trunk/www/
, which contains just the website code and any compiled swfs (.fla and .as source files are kept inside /trunk/flash
).
I am in the process of moving to Git and this structure feels wrong to me, mainly because:
- I don't want to transfer all of my resources to the webserver during deployment.
- I generally don't ever want to branch binary files, and don't want to have to deal with potential conflicts because of this.
Any suggestions on what I can do, or some insight on what has worked for you?
UPDATE
I have decided to go the submodule route, with www
being the submodule and everything else in the parent repository. Until git supports partial checkouts I think this is my best option whilst staying sane.