version control - How should I organize files in VCS? -
i'm making website , making multiple design prototypes. want keep of them future reference.
- is suitable place use branches, or should put them in folders?
- how should manage external dependencies (e.g. jquery), should include minified version every design or keep 1 whole project or link online version?
branches fine if:
- you want compare differences of same file across several variation of website
- develop in parallel said variations, in isolation (see "when should branch?").
that won't prevent top deploy in different directories (you checkout each branch in different folder on web server)
any common part (like jquery script) should in sub-directory versioned in own repo , referenced main web repo submodule.
Comments
Post a Comment