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 timestamped commit if anything changed
- Pulls. Pulls the 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”hyprlayer thoughts init installs a post-commit hook that syncs thoughts after each code commit. 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