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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Connect With Other SilverStripe Members /

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

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

Using git with SilverStripe


Go to End


2 Posts   3020 Views

Avatar
digibrains

Community Member, 130 Posts

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.

Thanks!
C.b

Avatar
Tim Snadden

Community Member, 32 Posts

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