The Setup: Adding a New Device
Let’s say you’ve been using repr on your work laptop. Now you want to add your home desktop.1
Install repr on the new device
Same as always:
2
Initialize with your local repos
Point repr at your code folder:This scans for git repositories on this machine. They don’t have to be the same repos as your other device—repr is smart about merging stories from different repos.
3
Sign in with your existing account
Use the same account you use on your other device:This opens your browser for device flow authentication (no password in the terminal). Sign in, and you’re connected.
4
Pull your existing stories
Download all the stories from your other device(s):Output:Now your home desktop has all the stories you generated on your work laptop. Magic.
The Daily Workflow: Staying in Sync
Once all your devices are connected to the same account, here’s how to keep them synchronized.Option 1: Manual Sync (Recommended)
Start your day by pulling the latest:Option 2: Automatic Sync with Git Hooks
You can hook repr sync into your git workflow. Add this to your shell config:Option 3: Scheduled Sync (Advanced)
Want it completely automatic? Add a cron job or launchd service:Handling Conflicts
Repr is pretty smart about conflicts, but occasionally you’ll edit the same story on two devices before syncing.The Default Strategy: Last Write Wins
If you edit story01ABC... on your laptop and the same story on your desktop, repr uses the most recent edit when you sync.
You’ll see a warning:
~/.repr/conflicts/ just in case.
Check Sync Status
Want to see what will happen before syncing?Preview Before Pushing
Always a good idea:Multiple Repos Across Devices
Here’s where it gets really powerful: You don’t need the same repos on all devices. Work laptop tracks:~/work/api-service~/work/frontend-app~/work/infrastructure
~/code/side-project~/code/open-source-contribution~/code/personal-site
The Multi-Device Power Move
Here’s a workflow that really works:- Work laptop: Set up hooks, generate stories automatically during the week
- Friday afternoon: Run
repr pushfrom your work laptop - Weekend: Pull to your home desktop with
repr pull - Review and curate: Polish stories, feature the best ones, export summaries
- Sunday night: Push curated stories back with
repr push - Monday morning: Pull to work laptop, your profile is polished and ready
Selective Sync (Advanced)
Don’t want to sync everything? You can be selective:Troubleshooting Sync Issues
”Auth token expired”
Your login expired. Re-authenticate:“Conflict detected”
You edited the same story on multiple devices. Check the conflict directory:”Sync failed: Network error”
Repr couldn’t reach repr.dev. Check your connection:“Stories out of sync”
Force a full sync:Privacy Note: What Gets Synced?
Let’s be clear about what syncing means: What gets synced:- ✅ Your generated stories (titles, narratives, metadata)
- ✅ Story edits and curation (featured/hidden status)
- ✅ Profile settings (bio, location, availability)
- ❌ Your source code (never)
- ❌ Commit diffs (never)
- ❌ Repository contents (never)
- ❌ Git history (never)
When Multi-Device Sync Makes Sense
Good fit:- You code on 2+ computers regularly
- You want a unified view of all your work
- You’re comfortable with cloud sync
- You only code on one machine
- You prefer full local-only mode
- You manually export/import as needed
What’s Next?
Once you’ve got sync working:- Weekly ritual: Pull → Review → Feature → Push
- Publishing: Your stories are already synced, just run
repr push --allto make your profile public - Backup: Even with sync, run
repr data backupoccasionally for local backups

