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.

Updating Theme with GitHub Integration

Updating Theme with GitHub Integration

Grey_Stephenson
Shopify Partner
9 0 4

How do you go about updating your Shopify theme when using the GitHub integration. Is there a way to create a branch with the newly updated theme and diff the changes? What is the best workflow?

Replies 2 (2)

EcomGraduates
Shopify Partner
840 71 121

Hello there  

 

  1. Make a backup of your existing theme in case something goes wrong during the update process. You can do this by duplicating your current theme and giving it a new name.

  2. Clone your Shopify theme repository from GitHub to your local machine using Git.

  3. Create a new branch for the update using the "git checkout -b" command.

  4. Make the necessary changes to the theme files, such as updating the CSS, HTML, or JavaScript files.

  5. Once you have completed the changes, commit and push the changes to your branch.

  6. Test the changes on a staging site or a local development environment to ensure that everything is working as expected.

  7. Once you are satisfied with the changes, create a pull request to merge the changes from your branch to the master branch.

  8. Review the changes and resolve any conflicts or issues that may arise during the merge process.

  9. Merge the changes to the master branch and publish the changes to your live site.

To diff the changes, you can use a Git diff tool such as "git diff" or a visual Git client that allows you to compare the changes between branches or commits. This can help you identify any changes that

 

 


 If this fixed your issue, likes and accepting as a solution are highly appreciated
|  Build an online presence with our custom-built Shopify Theme: EcomifyTheme
|  Check out our reviews: Trustpilot Reviews
|  We are Shopify Partners: EcomGraduates Shopify Partner



Grey_Stephenson
Shopify Partner
9 0 4

Thank you for the thorough reply! What I meant was when the theme developers release an update, how do you go about applying totally new files to a branch?