Skip to content

Syncing

Syncing ensures your thoughts repository stays up to date with your latest work and synchronized with your team.

Terminal window
hyprlayer thoughts sync

This command:

  1. Creates a searchable index — Builds thoughts/searchable/ with hard links to all files
  2. Stages all changes — Runs git add in the thoughts repository
  3. Commits — Creates a timestamped commit if there are changes
  4. Pulls — Pulls latest changes from the remote (with rebase)
  5. Pushes — Pushes your changes to the remote
Terminal window
hyprlayer thoughts sync --message "Added research on auth system"

When you run hyprlayer thoughts init, a post-commit hook is installed that automatically syncs thoughts after each code commit. The sync runs in the background so it doesn’t slow down your workflow.

The auto-sync commit message includes the code commit message:

Auto-sync with commit: Add user authentication
Terminal window
hyprlayer thoughts status

Shows the current state of the thoughts repository, including any uncommitted changes.

Since the thoughts repository uses git pull --rebase, conflicts are rare. If they occur:

  1. Navigate to your thoughts repository (e.g., cd ~/thoughts)
  2. Resolve conflicts manually
  3. Run git rebase --continue
  4. Run hyprlayer thoughts sync to push the resolution