340 Posts in 140 Topics by 176 members
|Go to End|
22 February 2011 at 8:26pm
I'm new to using git (or any version/repo system) and was wondering if anyone had any tips on using it with SS.
Specifically, I'm wondering whether to create my repos with or without the full SS installation. I.e., Is it better to just use the 'mysite' and 'themes' directory, or the whole installation.
Currently I'm taking the approach of including only the mysite and themes folders, but any advise is greatly appreciated.
7 November 2011 at 7:32am
Just notice that this is really old! But FWIW I've found that adding silverstripe and any modules as git submodules works really well.
git submodule add git://github.com/silverstripe/sapphire.git
git submodule add git://github.com/silverstripe/silverstripe-cms.git cms
You'll need to google git submodule to get a feel for how it works. Remember to go into the sapphire and cms directories and switch to the 2.4 branch.
Also, you'll need to remember that when cloning the project you'll need to use the '--recursive' argument to get the submodules. Either that or go:
git submodule init && git submodule update
|Go to Top|