Updating Theme with GitHub Integration

Grey_Stephenson
Shopify Partner
9 0 2

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
588 48 77

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

 

 

Grey_Stephenson
Shopify Partner
9 0 2

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?