Is there a way to achieve something similar to what this guy does with SVN? How to use a subversion repository as a template for new projects?
I have a basic ASP.NET MVC project, which is essentially a simple CMS site, which I base new sites upon.
I do not like the idea of having to clone the repository into a new site every time because that creates multiple copies of the same repository in different locations, which doesn't seem clean enough to me.
Are branches the solution to my issue? Should I just create a new branch for a new site? That way I could be able to bring changes in both ways, which is a flexibility I'd very much like, support multiple project but still keep everything under one repo.
(sometimes a bug might be found in the new site where it would be fixed and we would want to bring the fix back into the source site and vice versa)
Please base you answer on both Git/Hg, I use both and also I believe they are similar enough.
I think that branches is not the thing which could help you. From the very basic times branching are used to work on the same project but in difference modes (maintenance, next version, new features adding and stuff like that) and creating new branch per new project is something which wrong from the conceptual point of view.
If you using git why not to create template project, save it to github and each time when you starting new project just to fork it on your machine, then creating new repository and pushing your new site to it. Think is a standard approach.
And if you want to create something advanced for that purpose - I advice you to create windows installer, which will install all stuff you need each time when you will starting new project.