Skip to content

Conflicts

Tip

To resolve a conflict, see Resolve a conflict.

A conflict arises when several users make changes to the same file version. Only one file version can be the current one at any time.

How a conflict arises

Alice and Bob both change file version 1. Alice synchronizes her changes first, so they are stored as file version 2, which becomes the current file version. When Bob then tries to synchronize, his changes are based on file version 1 instead of the current file version 2, and a conflict arises.

Alice and Bob change the same file version, and Alice synchronizes her changes first.

sequenceDiagram
    autonumber
    participant A as Alice
    participant S as Organization server
    participant B as Bob

    Note over A,B: File version 1

    A->>A: Changes the file
    B->>B: Changes the file

    A->>S: Synchronizes
    Note over A,B: File version 2

    B-xS: Tries to synchronize changes to file version 1
    B->>B: Detects the conflict and warns Bob

    alt Bob overwrites with his own changes
        B->>S: Synchronizes
    else Bob saves a local conflict file
        Note over B: Conflict version
        B->>B: Fixes the conflict
        B->>S: Synchronizes
    end
    Note over A,B: File version 3
    S->>A: Synchronizes

Bob starts from the latest file version, so both changes are kept as new file versions.

sequenceDiagram
    autonumber
    participant A as Alice
    participant S as Organization server
    participant B as Bob

    Note over A,B: File version 1

    A->>A: Changes the file
    A->>S: Synchronizes
    Note over A,B: File version 2

    S->>B: Synchronizes

    B->>B: Changes the file
    B->>S: Synchronizes
    Note over A,B: File version 3
    S->>A: Synchronizes

When a conflict arises

When a conflict arises, Bob is warned and chooses between two options:

  1. Overwrite the current file version with his own changes. Alice's changes are no longer part of the current file, but they stay in file version 2 in the version history and can be restored as long as that version is kept. See Version history.
  2. Save his changes as a separate conflict file locally. Alice's changes stay in the current file version, and Bob handles the difference himself.

A file called ~Conflicts.txt is created and lists which files were in conflict.

The two options give different files. In this example, Alice and Bob change different lines of meeting.txt:

File version 1
Time: 09:00
Date: 2026-11-26
Participants: Alice, Bob
Time
Alice changes (file version 2)
-Time: 09:00
+Time: 08:00
 Date: 2026-11-26
-Participants: Alice, Bob
+Participants: Alice, Bob, Carol
Bob changes file version 1
 Time: 09:00
-Date: 2026-11-26
+Date: 2026-11-28
 Participants: Alice, Bob

Conflict

Bob's changes are based on file version 1, but the current file version is 2. Bob's changes conflict with Alice's.

Result if Bob overwrites
❌ Time: 09:00
✅ Date: 2026-11-28
❌ Participants: Alice, Bob
Result if Bob merges the changes
✅ Time: 08:00
✅ Date: 2026-11-28
✅ Participants: Alice, Bob, Carol
Version history after Bob handles the conflict
File version 3 (current)   Bob's overwrite
File version 2             Alice's changes
File version 1             The original file

Overwriting removes Alice's changes from the current file, but file version 2 stays in the version history. Merging by hand keeps all changes in the current file.

Avoid conflicts

Use the Lock file file lock when you work on a file that others may also change. Only the person who locked the file can change it, so nobody else can create a competing file version, and no conflict can arise.

Alice locks the file before she works on it, so Bob cannot change it in the meantime. When she releases the lock, Bob can change the file.

sequenceDiagram
    autonumber
    participant A as Alice
    participant S as Organization server
    participant B as Bob

    Note over A,B: File version 1

    A->>S: Locks the file
    B-xS: Cannot change the file

    A->>A: Changes the file
    A->>S: Synchronizes
    Note over A,B: File version 2

    S->>B: Synchronizes
    A->>S: Releases the lock

    B->>B: Changes the file
    B->>S: Synchronizes
    Note over A,B: File version 3
    S->>A: Synchronizes