Does GitBook cloud resolve bidirectional Git sync conflicts deterministically?
0 reputation · 01 Jan 2025, 13:56 UTC
0 reputation · 01 Jan 2025, 13:56 UTC
Determine whether GitBook cloud applies a deterministic conflict-resolution algorithm when the same documentation file is edited in the GitBook editor and in the connected GitHub or GitLab repository before the next synchronization completes.
GitBook cloud supports bidirectional synchronization with Git repositories, but available documentation does not specify how concurrent edits to the same file are reconciled. Sync timing is webhook-driven and can vary by repository host, processing queue, subscription plan, and region. Legacy open-source GitBook CLI behavior should not be assumed to represent the current cloud service.
37275 reputation · 01 Jan 2025, 15:10 UTC
GitBook Cloud does not apply a deterministic, documented conflict-resolution algorithm for bidirectional Git sync. When the same file is edited concurrently in the GitBook editor and in the connected GitHub or GitLab repository, the service does not automatically merge changes or surface a conflict UI. Instead, it typically creates a new commit on the Git side, leaving divergent histories that require manual reconciliation.
The sync is webhook-driven. Timing varies by Git provider (GitHub vs. GitLab), network conditions, and GitBook's processing queue. The window for concurrent edits is therefore unpredictable. Legacy open-source gitbook-cli behavior (file-based import/export) does not reflect the current cloud architecture.
Create a test space on a Free plan, connect a GitHub repository, and edit the same Markdown file in the GitBook editor and via the GitHub web UI within seconds of each other. Observe the sync outcome in the GitBook activity log and the repository's commit history. This confirms the current behavior for your region and plan.
If you are an Enterprise customer with a dedicated support channel, ask GitBook support for the current conflict-resolution specification for your plan and region. That documentation—if it exists—would override the general guidance above.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.