Docs/Git Integration

Git Integration

Connect any HTTPS git repository. ThemeSync clones it, pulls changes automatically, and — for production themes — commits changes from Shopify back to git.

Overview

Git is optional but recommended. Without it, ThemeSync still runs a dev server and takes QA screenshots — git just adds the ability to auto-pull code changes and maintain a version history of your theme.

Production themes sync the other way For production tracking sessions, git receives commits from Shopify (not the other way around). See Production Tracking.

Connecting a Repo

Add a git URL when creating a theme or in Theme Settings → Git.

  • Supports GitHub, GitLab, Bitbucket, and any self-hosted HTTPS git server
  • Private repos: provide a Personal Access Token or App Password
  • Each theme gets its own isolated working copy of the repo
  • Credentials are encrypted at rest — not displayed after saving

Token setup by provider

ProviderToken typeRequired permissions
GitHubPersonal Access Token (classic or fine-grained)Contents: Read & Write
GitLabProject or Personal Access Tokenread_repository, write_repository
BitbucketApp PasswordRepositories: Read, Write

Auto-Sync

Auto-sync behaviour depends on the theme type:

Theme typeDirectionWhat happens
DevelopmentRemote git → workdirPulls latest commits; triggers live-reload in the dev server
ProductionShopify → gitPulls live theme from Shopify, commits and pushes to your repo
WooCommerceRemote git → WP sitePulls latest commits; deploys theme files to WordPress

Sync intervals

IntervalBest for
OffManual control only
30 secondsActive development — near-instant updates
1 minuteDefault — good balance
5 minutesLow-activity branches, staging

Manual sync is always available via Pull in the Git Changes modal or the Git Source card on the Overview tab.

Branches & Versions

To preview a different branch, use Duplicate Version from the theme action menu (⋮):

  1. Open the action menu on any theme card
  2. Click Duplicate Version
  3. Choose a different git branch
  4. Optionally carry over template mappings from the source theme
  5. Both themes run simultaneously — compare preview URLs side-by-side

Common use cases: A/B testing designs, reviewing a feature branch before merging, running a "staging" and "main" preview in parallel for a client presentation.

All visible on the store home Every theme for a store — live, draft, dev — appears on the store home page. You can always see which branch is running what without opening each one.