What is the recommended way to use Git with Trellis?


I’m having a blast experimenting with Trellis. Wish I’d included it in my workflow earlier.

The setup instructions for Trellis obliterate the Git repository history for both Trellis and Bedrock:

Initially, I versioned the entire example.com folder but it seems versioning site and trellis separately might be better.

Is there a recommended way to use Git to version the newly created project folder (example.com)?

1 Like

For myself I use Trellis as ordinary git repository. The site folders are above, outside the trellis folder as separate repositories. - Changes in Trellis repository on GitHub can then be just pulled in.


Thank you, @starsis. That will be worth trying for sure!

I have found this thread useful for this discussion as well:

1 Like