Syncing
Keep thoughts synchronized
Sync keeps your thoughts repository current with your latest work and with your team’s.
Manual Sync
Section titled “Manual Sync”hyprlayer thoughts syncThis command:
- Creates a searchable index. Builds
thoughts/searchable/with hard links to every file - Stages all changes. Runs
git addin the thoughts repository - Commits. Creates a
Sync thoughts - <timestamp>commit if anything changed - Pulls. If the repo has a remote, pulls with rebase
- Pushes. If it committed in step 3, pushes to the remote. A pull or push failure prints a warning and does not fail the command
Custom Commit Message
Section titled “Custom Commit Message”hyprlayer thoughts sync --message "Added research on auth system"Automatic Sync
Section titled “Automatic Sync”hyprlayer thoughts init installs a post-commit hook that syncs thoughts after each code commit in the main checkout. Commits inside a git worktree skip it. The sync runs in the background, so it never slows you down.
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”The thoughts repository uses git pull --rebase, so conflicts are rare. Resolve one like this:
- Go to your thoughts repository (
cd ~/thoughts) - Resolve conflicts manually
- Run
git rebase --continue - Run
hyprlayer thoughts syncto push the resolution