Git Sync¶
Collaborate with teams using git-backed task synchronization.
Basic Sync¶
Sync All Repositories¶
Performs: 1. Commits local changes 2. Pulls from remote 3. Resolves conflicts 4. Pushes changes
Sync Specific Repository¶
Pull Only (No Push)¶
Setup Remote¶
Add Git Remote¶
cd ~/tasks/tasks-work
git remote add origin https://github.com/user/tasks-work
git push -u origin main
GitHub Repository¶
Create repository on GitHub, then:
Conflict Resolution¶
When local and remote tasks diverge, TaskRepo automatically resolves conflicts.
Resolution Strategies¶
Auto (Default)¶
- Smart merge when possible
- Interactive prompt for complex conflicts
Local¶
- Always keep local version
Remote¶
- Always keep remote version
Interactive¶
- Always prompt for resolution
Smart Merge¶
TaskRepo uses timestamps to intelligently merge conflicts.
Simple fields: Uses newer version - status, priority, title
List fields: Creates union - assignees, tags, links
Description: Requires manual resolution
Sync Workflow¶
Individual Workflow¶
# Morning: Pull updates
tsk sync --no-push
# Work on tasks
tsk add -r work -t "New task"
tsk done 5
# Evening: Push changes
tsk sync
Team Workflow¶
# Regular sync cadence
tsk sync # Every hour or before/after work
# Before making changes
tsk sync --no-push
# After completing work
tsk sync
Conflict Example¶
Local version:
Remote version:
Auto merge result (using newer timestamp):
Common Issues¶
No Remote Configured¶
Error: "No remote configured"
Fix: Add git remote
Push Rejected¶
Error: "Updates were rejected"
Fix: Pull first
Merge Conflicts¶
Fix: Use interactive resolution
Collaboration Best Practices¶
Sync Often
Sync multiple times per day to minimize conflicts
Communicate Changes
Inform team about major task updates
Use Branches
For experimental work, create git branches
Consistent Format
Agree on task format conventions
Advanced Sync Options¶
Verbose Output¶
Shows: - Timing information - Detailed progress - Per-operation status
Auto-Merge Control¶
Disables automatic merging, always prompts.
README Generation¶
Sync automatically updates README.md with task tables.
Location: Repository root Content: Active tasks, statistics Archive: tasks/archive/README.md
See Also¶
- Conflict Resolution - Detailed conflict handling
- Repositories - Repository management
- Configuration - Sync settings