Create Branch

To create a new collection you will be adding a branch to one of the collection template repositories. This can be done on the GitHub interface or on your local machine.

Clone a Collection Template

To work on your local machine, you will need to have a copy of the repository “cloned” to your computer. This only has to be done once for each template repository, so if you already have a copy, you don’t need to do it again–skip this step!

Visit the GitHub link for the template you will be using, then follow the clone repository steps in cb-docs.

Important: on Windows when it gives you the option of where to save your repositories, it will default to a OneDrive folder–click the Browse option and navigate in your file explore to a non-onedrive location, such as This PC > C: > Users > yourusername > Documents.

Create a New Branch

Each collection is contained in a branch, so to start a new one, you will be creating a new branch in the template repository.

Open the template repository with VS Code:

  1. Ensure you are on the “main” branch of the repository by looking at the lower left corner of the editor.
  2. Ensure your “main” branch is up to date by doing a Git Pull / Sync.
  3. Click the branch name “main” in the lower left corner of the editor, which will open up a window at the top with “+ Create new branch” highlighted. Click “Create new branch” (or click enter), then type in the “stub” name you have selected, then press enter.

You are now working in the new collection branch!