Re: GitHub Integration doesn't support the .gitignore file

GitHub Integration doesn't support the .gitignore file

Shopify Partner
119 2 35

It looks like the theme GitHub Integration doesn't support the .gitignore file

I want to distribute the theme code via GitHub without loosing the store custom settings. Is it possible?

Shopify App / Theme developer
Replies 7 (7)

Shopify Partner
2 0 5

I have the same problem - I have config/settings_data.json in a gitignore file, but any theme settings I change are causing that file to be pushed to the repo anyway, so my other stores end up syncing each others' wrong theme settings 😕

Support suggested connecting a different branch for each store, but I don't see how that would fix it - at some point you still need to merge the branches up or down with dev updates, and settings_data.json will still be in there...

Shopify Partner
3 0 2

We have exactly the same issue, we don't want to overwrite the files in /config directory.

But the GitHub integration does not support the .gitignore file 😞

16 0 9

Same issue here. Hoping it'll be fixed soon! 

1 0 3

I'm having the same trouble! 

How can we use GitHub integration at all if settings_data.json has to be synced between different branches?

The dev and staging themes should not be supposed to have the same content on the homepage. 

This is content, it shouldn't be handled the same way as code!

Shopify Partner
28 0 6

Hi @MP, did you manage to find a workaround for this issue? 
I am setting up a project with a 2.0 theme and I am running into the same problem, since I have two stores and Shopify Github integration doesn't ignore the templates folder and the settings_data file even though I added them to the .gitignore file

Shopify Partner
2 0 0

In addition to the /config/settings_data.json file, we should be able to also ignore any other data file in a 2.0 theme.

The .gitignore file we use on my team for Themekit has these contents, but this should be respected in the Github integration as the OP states.





Shopify Partner
28 0 6

I have come across this blog article about setting up a workflow with a single github repo and tested it on my store. The merge action automatically fails if any of the templates, settings_data or locales files is changed, and you need to manually edit the files in the Shopify code editor. 


Still not ideal as a continuous integration tool like Buddy, but a step in the right direction