Jump to:

382 Posts in 210 Topics by 196 members

Connect With Other SilverStripe Members

SilverStripe Forums » Connect With Other SilverStripe Members » Using git with SilverStripe

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

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

Page: 1
Go to End
Author Topic: 1413 Views
  • prawnstar
    Community Member
    116 Posts

    Using git with SilverStripe Link to this post

    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
    Community Member
    32 Posts

    Re: Using git with SilverStripe Link to this post

    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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.