Syncing
Syncing ensures your thoughts repository stays up to date with your latest work and synchronized with your team.
Manual Sync
Section titled “Manual Sync”hyprlayer thoughts syncThis command:
- Creates a searchable index — Builds
thoughts/searchable/with hard links to all files - Stages all changes — Runs
git addin the thoughts repository - Commits — Creates a timestamped commit if there are changes
- Pulls — Pulls latest changes from the remote (with rebase)
- Pushes — Pushes your changes to the remote
Custom Commit Message
Section titled “Custom Commit Message”hyprlayer thoughts sync --message "Added research on auth system"Automatic Sync
Section titled “Automatic Sync”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 authenticationCheck Status
Section titled “Check Status”hyprlayer thoughts statusShows the current state of the thoughts repository, including any uncommitted changes.
Conflict Resolution
Section titled “Conflict Resolution”Since the thoughts repository uses git pull --rebase, conflicts are rare. If they occur:
- Navigate to your thoughts repository (e.g.,
cd ~/thoughts) - Resolve conflicts manually
- Run
git rebase --continue - Run
hyprlayer thoughts syncto push the resolution