# Switch to backup branch
git checkout v2026.01.22
# View history
git log
# Merge to master (if needed)
git checkout master
git merge v2026.01.22
List All Backups
git branch -a | grep v
Backup Best Practices
Scenario
Frequency
Daily development
Once per day (end of day)
Important changes
Immediately before change
Version release
Mandatory before release
Naming Convention:vYYYY.MM.DD
Retention:
Daily backups: 30 days
Release backups: Permanent
Quick Reference
Essential Commands
npm run dev # Start development
npm run css # Compile CSS
npm run pull # Pull from Shopify
npm run push # Push to Git (triggers sync)
npm run backup # Create backup
npm run shopify:sync # Manual sync
Urtopia US Shopify Theme - Developer Guide
1. Getting Started
Prerequisites
Installation
2. Development Workflow
Project Structure
Development Steps
Pull latest code
Start development server
Edit files
sections/,snippets/,templates/assets/*.css,assets/*.scssassets/*.jsPreview changes
Coding Standards
Liquid
{% render %}instead of{% include %}for performancekebab-case.liquidsnake_caseCSS
er-JavaScript
3. Configuration Guide
Shopify CLI (config.yml)
Tailwind CSS (tailwind.config.js)
Theme Settings (config/settings_schema.json)
Add custom options in
settings_schema.json:Access in Liquid:
{{ settings.sale_name }}4. Deployment Process
Local Preview
Publish to Production
⚠️ Warning: This replaces the live theme. Test thoroughly before publishing.
Deployment Commands
npm run devnpm run cssnpm run pullnpm run listshopify theme publish5. Push Procedures
Git Commit Flow
Pre-push Hook
The
.git/hooks/pre-pushhook automatically syncs theme files to Shopify on push.Behavior:
masterbranchSynced Directories:
sections/,templates/,snippets/,assets/,config/,locales/Manual Sync
Branch Management
Create backup branch:
Switch branches:
Merge to master:
6. Backup Strategy
Create Backup
Output:
Restore from Backup
List All Backups
Backup Best Practices
Naming Convention:
vYYYY.MM.DDRetention:
Quick Reference
Essential Commands
File Locations
config.ymltailwind.config.jssettings_schema.json.git/hooks/pre-pushshopify-sync.jsResources
Version: 1.0.0 Last Updated: 2026-01-22