Save your changes

Last modified: March 14th, 2024

Working with a specific static site generator?
Customize CloudCannon's documentation to suit your SSG.

Great! We'll show you documentation relevant to .
You can change this any time using the dropdown in the navigation bar.

Whenever you edit your files, CloudCannon will remember any updates you make in-app. To see your updates live on your site or commit them to your Git repository, you must save your changes.

Any team member can review and save file changes, even if they did not contribute to those edits.

It is important to save your changes often, as unsaved changes can prevent other updates to your site. We recommend saving your site after every editing session.

To save your changes:

  1. Click the Save button in the Site navigation sidebar or the top right of your editing interface. CloudCannon will open the Review changes modal.
  2. Review all unsaved changes and select the files you would like to save. Any file you contributed to will be selected by default.
  3. Once you are happy with your selection, click the Save selected button.

CloudCannon will rebuild your site and commit your changes to your git repository. Once the build is complete, your changes will be live on your test URL and any other domain connected to your site.

Review your changes#

Clicking the Save button will open the Review changes modal and provide a comprehensive list of the unsaved changes to your site.

The Review changes modal with unsaved changes to three files.

Each file with unsaved changes appears in the Review changes modal as a file card. Each card shows the title, collection (if applicable), filename, the avatar of each team member who contributed to unsaved changes, and when the file was last updated. The file card will also show a New, Edited, or Deleted badge to summarize the unsaved changes to that file.

Each file grouped into one of three headings: My changes, Other changes, and Conflicting updates. The My changes heading lists all the files where you contributed to unsaved changes. These files are selected by default when you open the Review changes modal. The Other changes heading lists all the files where you have not contributed to unsaved changes.

In some cases, you may see a Conflicting updates heading.

The Review changes modal shows a warning about Conflicting updates.

This heading lists files with updates from outside of CloudCannon that conflict with your unsaved changes. You must address these conflicting updates to save other changes. You can address these conflicting updates by saving the affected files to attempt a merge or by discarding unsaved changes for those files. For more information, read our documentation on conflicting updates.

You can select as many or as few files as you like using the checkboxes by each heading or file card. The Save selected and Discard selected buttons at the bottom of the modal allow you to save or discard your selected files as a group. You can also discard unsaved change on individual items using the Context menu in the top right of the file card.

Inputs#

Some file cards may have input fields depending on your SSG and how you have configured your site. These fields may be required before you can save your changes.

The Review changes modal with required inputs to save the file.

Common examples of required inputs are file name, title, and date. Which inputs are required depends on how you have configured your site, particularly the default path for new files.

specific doc

For Jekyll sites, new posts require a date. If you have not added one during your editing session, the Review changes modal will prompt you to do so before you can save your site.

Commit messages#

If you or a team member has configured commit messages for your site, your Review changes modal will have a commit message field. This field may be required before you can save your changes.

The Review changes modal with a commit message describing the changes made to the site.

A commit message should summarize the theme of your changes. Good commit messages will help you and other team members in the future by providing a record of why you updated your site. For example:

“Added a profile image and updated the Staff and Contact pages to include our new consultant, Deborah.”

We recommend the following best practices for commit messages:

  • Clearly state the purpose of your changes by using verbs (e.g., Added, Updated, Deleted, Fixed, etc.).
  • Avoid vague descriptions like “updated code” or “fixed typo”. Be specific.
  • Reference any relevant context, such as issue numbers, discussions, or contacts.
Open in a new tab