Does GitHub save blog post content in git commits for Shopify themes?

I am helping to manage a Shopify store, and we’ve successfully connected the store Theme to a GitHub repository. Right now, we are primarily concerned with using version control to backup the state of the site and its theme, so that we can recover quickly in the case of an error or data loss.

I am curious about the scope of what gets saved in the git commits as we make edits to the site. For example, if we write a blog post and add it to the site, does the content of the blog post get saved in the commit, or not?

If anyone has a good idea, or has tested what content gets added to repositories, I would be really appreciative!

Only direct data in the theme itself connected to github goes to github.

No admin data goes to github through the theme integration nor should it as that’s just asking for serious security data leaking* problems.

If you want content to be backed up to git/github you need an app, third-party service like zapier, or something custom with a app like mechanic if able to use a simple http api with the target service, maybe even possibly just a github action.

*edit to clarify, shopify would not be insecure in doing this , it’s just it would make it very easy for staff to accidentally expose private admin info through a public github repo if care is not exercised , which is a very different concern from if a theme was accidently made public.

PaulNewton:

Thanks for your thoughtful answer! What you say makes sense, and I suspected that was the case, as I was just looking over the structure of the repository more closely. I owe you a coffee.

All the best,

Salvagebar

1 Like

Cool thanks.

Edited prior post to specify data-leak instead of implying shopify or github would be insecure.