Resolve publishing conflicts

Last modified: March 12th, 2025

Publishing conflicts occur when changes to a file on your Site conflict with incoming changes to the same file from your Publish Branch. CloudCannon can detect publishing conflicts after you try to update your Site from its Publish Branch.

To prevent CloudCannon from detecting publishing conflicts while someone is editing your Site, you cannot attempt to update from your Publish branch while you have unsaved changes.

CloudCannon will alert you if it detects a publishing conflict with the Conflicts notification on the Publish button in your Site Navigation. Clicking on the Publish button will take you to the Publishing page, where CloudCannon lists all files with incoming changes, including files with conflicts.

After CloudCannon has detected a publishing conflict, you cannot publish to your Publish Branch or save your files until you resolve the conflict by merging the conflicting changes in affected files or abandon the update attempt.

Publishing conflict resolution is available to the Owners, Developers, and Technical Editors Default Permission Groups and Custom Permission Groups with the site:source-editor:write and site:publish:upstream:write permissions.

These instructions assume that CloudCannon has detected a publishing conflict after you attempted to update your Site from its Publish Branch.

To merge conflicted files:

  1. Navigate to the Publishing page by clicking the Publish button in your Site Navigation.
  2. Identify which files have conflicts. These files will have the conflict file badge.
  3. Click on a conflicted file. CloudCannon will open the Source Editor to display the file contents and highlight the conflicted sections. CloudCannon will highlight the changes in the file from your current branch in red and the incoming changes from the Publish Branch in green.
  4. Select which changes you want to keep by clicking the Use current or Use incoming buttons to replace one change with another, or clicking into the Source Editor to make a hybrid of the changes manually.
  5. (Optional.) Click the Scroll to next conflict button to move to the next conflict in a file with multiple conflicts.
  6. Click the Mark resolved button after resolving all conflicts in a file.
  7. Repeat steps 3 - 6 for each conflicted file.
  8. Click the Save button when you have resolved all conflicted files.

CloudCannon will complete the update from your Publish Branch, including all resolved and unaffected files.

You can abandon the update attempt if you do not want to resolve your publishing conflicts immediately. Abandoning an update attempt will allow you to save changes to your Site and dismiss the warnings about publishing conflicts. However, you will lose all your unsaved changes.

We do not recommend editing your files after CloudCannon detects a publishing conflict. Please abandon the update attempt to continue editing, or wait until after the conflicts are resolved.

You can abandon a merge attempt at any time. However, you must still resolve all publishing conflicts before you can publish changes from this Site to your Publish Branch. CloudCannon will remind you about any publishing conflicts the next time you try to publish from this Site or update from your Publish Branch.

To abandon the update attempt:

  1. Navigate to the Publishing page by clicking the Publish button in your Site Navigation.
  2. Click the Abandon attempt button. CloudCannon will open the Abandon your update attempt? modal.
  3. Confirm your choice by clicking the Abandon attempt button.

CloudCannon will return to the app state before you attempted to update from your Publish Branch.

In some cases, CloudCannon cannot resolve a publishing conflict. If CloudCannon detects a publishing conflict that you cannot solve in the Source Editor (e.g., a conflict in an image file), a warning notification will appear on the Publishing page, directing you to resolve this conflict in your local development environment.

Open in a new tab