Get AI summaries of any video or article — Sign up free
What you need to know to never lose notes in LogSeq thumbnail

What you need to know to never lose notes in LogSeq

Tools on Tech·
5 min read

Based on Tools on Tech's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Merge conflicts in text-based note apps can make it appear that notes were deleted after syncing across devices.

Briefing

Note-taking apps that store data as plain text and sync across devices—LogSeq, Obsidian, and similar tools—can run into merge conflicts. When two devices edit the same file around the same time, Git has to reconcile competing changes, and that reconciliation can leave users seeing only a fragment of what they previously wrote. The practical takeaway is blunt: losing notes isn’t a question of if, but when.

The core reason is how Git works under the hood. Git doesn’t “store files” so much as it stores a history of changes (commits) to text files. That history is designed to be durable: if a password accidentally gets committed, it remains in the record, meaning removed content can often be recovered. The catch is that sync conflicts can make it look like content vanished—like a long entry written on a laptop disappearing later, replaced by a short line typed on a phone. Even then, Git’s commit history still contains the missing edits somewhere.

Recovery starts by finding the exact commit that removed the content. The process is easiest when the repository has a small number of commits, but it scales by narrowing the search to the specific file (for example, a particular journal page) and using commit timing to estimate when the loss happened. Once the right commit is identified, the user copies the commit’s unique identifier (the long hash at the top of the commit details). That identifier becomes the key to restoring the missing content.

Restoration requires working locally with Git. Users must install Git, choose a text editor during setup (the transcript suggests Notepad as a safe default), and then clone the LogSeq repository from GitHub. Cloning creates a local copy of the notes so changes can be applied and then pushed back to the remote repository. From there, the recovery step is to “revert” the problematic commit: Git can create a new commit that undoes the effects of the earlier one. The transcript emphasizes that this is the reverse of what happened—if content was removed, the revert adds it back; if content was added incorrectly, the revert removes it.

Finally, the restored state is pushed back to GitHub. After pushing, refreshing the repository shows the commit count increasing and the missing notes reappearing in the LogSeq vault. The overall message is less about panic and more about preparedness: because Git keeps a complete change history, users can usually recover “lost” notes—provided they can locate the offending commit and revert it correctly.

Cornell Notes

Merge conflicts in text-based note apps can make it look like notes disappeared after syncing across devices. Git’s strength is that it stores change history as commits, so removed content is often recoverable even when the current view looks wrong. The recovery workflow is: find the commit that removed the missing entry (often by checking commit history for the specific file), copy the commit’s long hash, clone the repository locally, then use Git to revert that commit and push the reversal back to GitHub. After the push, refreshing the repository should bring the notes back. This turns “lost notes” into a traceable, reversible operation.

Why do notes “disappear” during syncing in apps like LogSeq?

Sync conflicts happen when multiple devices edit the same text file and Git must merge competing changes. If both devices touch overlapping lines, Git may produce a merged result that effectively drops part of the content—such as replacing a long entry with a shorter line typed elsewhere. The current state looks like data loss, even though the underlying Git history still contains the earlier edits.

What makes Git recovery possible even after a merge conflict?

Git doesn’t just keep the latest file version; it records every change as commits. Because Git retains the history of additions and removals, content that was removed from the current view can still be found in prior commits. The transcript uses the example of accidentally committing a password: it remains in history, illustrating that “removed” doesn’t mean “gone forever.”

How does someone locate the specific change that caused the missing notes?

The workflow starts by browsing the repository’s commit list on GitHub. If the repository has few commits, the last commit(s) are often the culprit. For larger histories, the search narrows to the file where the notes should exist (e.g., a specific journal markdown file) and then checks that file’s commit history. Timing helps narrow the window, and the commit details provide a unique long identifier (hash).

Why must recovery use a local clone instead of reverting directly on GitHub?

The transcript notes that reverting requires checking out code locally—creating a local copy of the repository—so Git can apply the revert operation and then push the resulting commit back to the remote repository. Cloning provides that local working environment where Git commands can be run.

What exact Git action restores the missing content?

After cloning, the user runs a revert command using the commit’s long hash. Reverting creates a new commit that undoes the earlier commit’s changes. If the earlier commit removed content, the revert effectively adds it back; if it added the wrong content, the revert removes it. The reversal is then pushed to the remote repository.

What should users expect after pushing the revert?

Once the revert commit is pushed, the remote repository’s commit list should show the new reversal commit. Refreshing the repository should reveal the missing notes again in the LogSeq vault structure (for example, the journal markdown file content returning to its prior state).

Review Questions

  1. How does Git’s commit history differ from simply storing the latest version of a note file, and why does that matter for recovery?
  2. What steps would you take to recover a missing journal entry if you know the approximate date it vanished but the repository has thousands of commits?
  3. Explain the difference between identifying the bad commit and reverting it—what does each step accomplish?

Key Points

  1. 1

    Merge conflicts in text-based note apps can make it appear that notes were deleted after syncing across devices.

  2. 2

    Git keeps a durable history of changes as commits, so removed content is often recoverable even when the current view is wrong.

  3. 3

    Recovery begins by locating the commit that removed the missing content, using commit history and narrowing to the affected file when histories are large.

  4. 4

    Copy the commit’s unique long hash from GitHub; it becomes the identifier needed for the revert operation.

  5. 5

    Install Git, clone the repository locally, and run a revert command to undo the effects of the problematic commit.

  6. 6

    Push the revert commit back to GitHub and refresh to confirm the notes have returned.

Highlights

Notes can “vanish” after sync not because Git forgets, but because merge conflicts can produce a merged result that drops parts of earlier edits.
Git recovery hinges on finding the exact commit hash that removed the content and then reverting it to undo the damage.
Cloning locally is the practical bridge between GitHub’s commit history and the ability to run revert commands safely.

Topics

  • LogSeq Sync Conflicts
  • Git Commit History
  • Merge Conflict Recovery
  • Git Revert Workflow
  • GitHub Cloning

Mentioned

  • Git
  • SSH