Overview
Auto sync automatically synchronizes your workspace with the remote Git repository at regular intervals, ensuring your team always has the latest changes.Automatic Commits
Changes are automatically committed to local Git
Scheduled Sync
Push and pull at configurable intervals
Conflict Detection
Automatically detects and handles merge conflicts
Background Operation
Syncs in background without interrupting work
Enable Auto Sync
Via Workspace Settings
Via Configuration File
Edit workspacesettings.json:
Sync Intervals
Choose an interval based on your collaboration needs:- Active Collaboration
- Balanced (Default)
- Periodic Updates
- Manual Only
5 minutes - For teams actively working togetherBest for:
- Real-time collaboration
- Pair programming
- Rapid iteration
- Small teams
- Higher network usage
- More frequent conflict checks
- Battery impact on laptops
Sync Behavior
Automatic Commit
When auto-commit is enabled, Auk automatically commits changes:- After saving a collection
- After modifying an environment
- After deleting items
- Before sync operation
Sync Process
Each sync operation follows this flow:Pre-Sync Check
- Check if Git is enabled
- Verify network connectivity
- Ensure no conflicts from previous sync
Commit Local Changes
- Stage all modified files
- Create commit with descriptive message
- Update local Git repository
Pull Remote Changes
- Fetch from remote repository
- Merge remote changes into local branch
- Detect conflicts if any
Conflict Resolution
- If conflicts detected, pause sync
- Notify user and show conflict UI
- Wait for user resolution
Sync Triggers
Auto sync can be triggered by multiple events:Time-Based (Primary)
Sync at regular intervals:Event-Based
Sync on specific events:Sync before switching workspaces
Sync when opening workspace
Sync before closing Auk
Manual Trigger
Always available regardless of auto-sync settings:- Click sync button in toolbar
- Keyboard shortcut:
Cmd/Ctrl + Shift + S - Right-click workspace → “Sync Now”
Sync Status Indicator
Monitor sync status in real-time:Status Details
Click the status indicator to see:- Last sync time
- Pending changes count
- Sync history
- Error messages (if any)
Conflict Handling
When conflicts are detected during auto-sync:Automatic Resolution
Configure automatic conflict resolution:- Prompt (Default)
- Keep Local
- Use Remote
- Smart Merge
- Pause sync when conflict detected
- Show conflict resolution UI
- Wait for user decision
- Resume sync after resolution
Conflict Notification
When conflicts occur:- Desktop Notification - System notification appears
- Status Indicator - Shows conflict warning
- Conflict Panel - Opens automatically (if configured)
- Sync Paused - Auto-sync pauses until resolved
Network Considerations
Offline Handling
When network is unavailable:- Auto-sync gracefully fails
- Changes continue to commit locally
- Sync resumes when network returns
- No data loss
Bandwidth Optimization
For limited bandwidth:Performance Optimization
Large Repositories
For workspaces with many collections:Battery Saving
For laptop users:Monitoring and Logs
Sync History
View sync history:Sync Logs
Enable detailed logging:Best Practices
Choose Appropriate Interval
Choose Appropriate Interval
Match sync interval to collaboration intensity:
- Active team: 5-15 minutes
- Regular collaboration: 15-30 minutes
- Solo work: 1 hour or manual
Enable Sync Before Switch
Enable Sync Before Switch
Always sync before switching workspaces to avoid conflicts:
Monitor Sync Status
Monitor Sync Status
Regularly check sync status indicator:
- Ensure syncs are completing successfully
- Address conflicts promptly
- Verify network connectivity
Handle Conflicts Quickly
Handle Conflicts Quickly
Don’t let conflicts accumulate:
- Resolve conflicts as soon as detected
- Communicate with team about major changes
- Use feature branches for large modifications
Test Auto-Sync Setup
Test Auto-Sync Setup
Verify auto-sync is working:
- Make a small change
- Wait for sync interval
- Check remote repository
- Verify change appears
Troubleshooting
Auto-sync not working
Auto-sync not working
Symptoms: Changes not syncing automaticallySolutions:
- Verify auto-sync is enabled in settings
- Check network connectivity
- Review sync logs for errors
- Ensure Git authentication is valid
Sync takes too long
Sync takes too long
Symptoms: Sync operations are slowSolutions:
- Increase sync interval
- Enable compression
- Check network speed
- Consider shallow clone for large repos
Frequent conflicts
Frequent conflicts
Symptoms: Conflicts on every syncSolutions:
- Reduce sync interval for more frequent updates
- Coordinate with team on who edits what
- Use feature branches
- Enable smart merge
High battery drain
High battery drain
Symptoms: Laptop battery drains quicklySolutions:
- Increase sync interval
- Enable battery-saving mode
- Disable sync when on battery
- Use manual sync when needed
Next Steps
Conflict Resolution
Learn how to resolve merge conflicts
Troubleshooting
Solve common sync issues
Branch Management
Work with Git branches (coming soon)
Workspace Settings
Configure all workspace options