Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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