How to fork & update the B2B Mercury theme

The most common scenario for creating your own theme for VirtoCommerce Storefront is to fork, customize, and extend the B2B Mercury theme (vc-theme-b2b-vue). Here are some DOs and DON’Ts regarding creating and updating your fork:

  1. Creating a Fork:
    • DO: Create a fork using the “Fork” button on GitHub.
    • DO: Alternatively, follow instructions for your version control system and create a fork via the git clone, git remote set-url origin, git remote add upstream and git push commands
    • DON’T: Copy files directly from vc-theme-b2b-vue.
    • DON’T: Initialize your own repository with git init and then set vc-theme-b2b-vue as the upstream.
  2. Updating Your Fork:
    • DO: Use git merge upstream/master to sync our changes into your fork. This is usually the default command in most IDEs and Git UI tools.
    • DO: Use the Create a merge commit command on your pull request or merge these changes directly into your main branch
    • DON’T: Use git rebase to merge our changes from upstream/master into the branch on your fork.
    • DON’T: Use Squash and merge or Rebase and merge commands on your PR.
1 Like