Files
notesnook/docs/help/contents/merge-conflicts.md

64 lines
2.6 KiB
Markdown
Raw Normal View History

---
title: Merge Conflicts
description: Merge conflicts occur when there are conflicting note edits on different devices for the same note.
---
# Merge Conflicts
## Why Merge Conflicts occur?
Merge conflicts occur when there are conflicting note edits on different devices for the same note.
## How Merge Conflicts occur?
Lets suppose that you have two devices running Notesnook:
1. A desktop
2. A mobile device
Suppose that one of your devices is offline. Now if you made edits to one of your (same)notes on both your devices and **synched changes** a merge conflict will occur.
> info
>
> In order for a merge conflict to occur the changes on the (same)note on both devices should occur in more than a minute
## Where do Merge conflicts show
The conflicted notes appear at the very top of the notes list. Just navigate to the Notes page and you will see them right away (If there are any).
## How to Resolve Merge Conflicts
# [Desktop/Web](#/tab/web)
Follow these steps to resolve a Merge Conflict:
1. Go to the conflicted note. It appears at the top of your note list.
2. Open the note. This will take you to a conflict resolution screen.
3. On the conflict resolution screen two versions of your note will appear side by side. One will be from the device you are using (Current Note) and one will be from the server(Incomming Note).
![](https://github.com/user-attachments/assets/7790bcd3-e87f-4a5e-a8e6-3fba1b3f3ab3)
4. Go through both versions and choose which one you want to keep.
5. Press the Keep button on the note you want to keep.
6. Press Discard button on the note you don't want to keep (you can also press the Save a Copy button if you want to keep it too).
![](https://github.com/user-attachments/assets/58558f0e-6bf1-486d-a183-702dba54dcaf)
# [Mobile](#/tab/mobile)
Follow these steps to resolve a Merge Conflict:
1. Go to the conflicted note. It appears at the top of your note list.
2. Open the note. This will take you to a conflict resolution screen.
3. On the Coflict Resolution Screen 2 versions of your note will appear above and below. One will be from the device you are using (Current Note) and one will be from the server(Incomming Note).
<img src="https://github.com/user-attachments/assets/616381b6-17dc-4d2b-98a7-e7f2629f1925" alt="drawing" width="414" style="text-align:center"/>
4. Go through both versions and choose which one you want to keep.
5. Press the Keep button on the note you want to keep.
6. And Discard button on the note you don't want to keep (you can also press the Save a Copy button if you want to keep it too).
<img src="https://github.com/user-attachments/assets/699454f9-7840-4955-9c5f-1efd8c7963ea" alt="drawing" width="414"/>
---