Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Github Integration not working - branch isn't a valid theme

Github Integration not working - branch isn't a valid theme

notw
Shopify Partner
3 0 1

Hello,

 

I am trying to add a theme to my theme library through the Github integration. I am able to upload it as a zip just fine but I can't do it through Github and need to as there will be constant changes made. I keep getting this error "Branch isn't a valid theme" at the last step when I clicked connect. Please see the screenshot below.

 

I haven't been able to find any documentation on how to fix this error. Could anyone please help?

 

Thank you

 

B10FCED3-8F21-4CE1-94D2-DF2FFA78371C_1_201_a.jpeg

Replies 5 (5)

MelissaR
Shopify Partner
1 0 1

Have you found a solution to this yet?

.
notw
Shopify Partner
3 0 1
No, not yet 😢

Kyle_Tully
Shopify Partner
17 0 6

I'm sure there are numerous reasons for this error, but the cause of mine was an old line in my global gitignore file that was ignoring the config files (settings_data.json and settings_schema.json). Because of this, there was no config directory in github at all.

 

Once I removed those lines and pushed the config files it worked perfectly.

Shopify Partner building & growing Shopify websites since 2013
I send a weekly email that makes you smarter about growing your Shopify store at MorningCommerce.com
CJ56
Shopify Partner
2 0 0

Where is the global gitignore file located, please?

Kyle_Tully
Shopify Partner
17 0 6

On Mac it's in your home directory and called .gitignore_global -- it's a dot file so may be hidden by default.

 

Shopify Partner building & growing Shopify websites since 2013
I send a weekly email that makes you smarter about growing your Shopify store at MorningCommerce.com