Introduction

Clone Shopify Sample Project

Project Directory >
git clone [email protected]:Shopify/dawn.git <<your_theme_name>>

As this repo was cloned from Shopify, we'll forcibly remove the remnants of that repo and reinitialize it.

cd <<your_theme_name>>
git rm -r --cached . -f
rm -rf .git
git init . -b main

Add files to local repo

git add .
git commit -m "initial commit"

Add remote

Go to Github and create a new project, and then we'll add a remote:

git remote add origin <<remote url>>

Connect to Shopify

shopify login --store=<<your_store>>.myshopify.com

shopify theme serve

Push to GitHub

*Note: You may need to do this step from VSCode

git push origin main

Last updated

Was this helpful?