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.

Connect With Other SilverStripe Members

For all SilverStripe-related topics that don't fit into any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Using git with SilverStripe


2 Posts   1432 Views


22 February 2011 at 8:26pm Community Member, 116 Posts

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.


Tim Snadden

7 November 2011 at 7:32am Community Member, 32 Posts

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://
git submodule add 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