Understanding Conflicts
Conflicts occur when multiple team members modify the same part of a collection or environment simultaneously.When Conflicts Happen
Same File Modified
Two people edit the same collection file
Same Request Changed
Different changes to the same API request
Concurrent Deletions
One person deletes while another modifies
Environment Variables
Conflicting environment variable changes
Conflict Detection
Auk detects conflicts during sync:Conflict Notification
When conflicts are detected:- Sync Pauses - Auto-sync stops
- Notification - Desktop notification appears
- Status Indicator - Shows conflict warning
- Conflict Panel - Opens automatically
Conflict Resolution UI
Auk provides a visual interface for resolving conflicts:Resolution Strategies
1. Smart Merge (Recommended)
Automatically combines non-conflicting changes:Auto-Merge Safe Changes
Non-conflicting changes are merged automatically:
- New requests added by both sides
- Different properties modified
- Independent changes
Highlight Conflicts
Only true conflicts require manual resolution:
- Same property changed differently
- Conflicting deletions
2. Keep Your Changes
Use your local version, discarding remote changes: When to use:- You know remote changes are incorrect
- You’ve discussed with team and agreed
- Remote changes were accidental
3. Use Remote Changes
Accept remote version, discarding your local changes: When to use:- Remote changes are more up-to-date
- You want to start fresh with team’s version
- Your local changes were experimental
4. Manual Edit
Manually edit the conflicting file:Conflict Types
Collection Conflicts
Scenario: Two people modify the same collection- Request Modified
- Request Added
- Request Deleted
Conflict:
- Person A: Changed request method to PUT
- Person B: Changed request endpoint
- Smart merge: Apply both changes
- Result: PUT request with new endpoint
Environment Conflicts
Scenario: Environment variables changed differently- Variable Modified
- Variable Added
- Secret Variables
Conflict:
- Person A:
baseUrl = "http://localhost:3000" - Person B:
baseUrl = "http://localhost:8080"
- Prompt user to choose correct value
- Or keep both in different environments
Preventing Conflicts
Best Practices
Sync Frequently
Sync Frequently
Reduce conflict likelihood by syncing often:
Communicate Changes
Communicate Changes
Coordinate with team before major changes:
- Announce in team chat before editing
- Use feature branches for large changes
- Assign ownership of collections
Divide Responsibilities
Divide Responsibilities
Organize collections by ownership:
Use Feature Branches
Use Feature Branches
Create branches for major changes:
Pull Before Push
Pull Before Push
Always pull latest changes before starting work:
- Sync at start of day
- Sync before making changes
- Sync before switching tasks
Workspace Organization
Structure workspaces to minimize conflicts:Conflict Resolution Workflow
Complete workflow for handling conflicts:Choose Strategy
Select resolution strategy:
- Smart merge (recommended)
- Keep local
- Use remote
- Manual edit
Advanced Scenarios
Multiple Conflicts
When multiple files have conflicts:- Resolve One by One - Auk presents conflicts sequentially
- Batch Resolution - Apply same strategy to all (if appropriate)
- Skip and Return - Skip difficult conflicts, resolve easy ones first
Recurring Conflicts
If same conflicts keep appearing:- Identify Root Cause - Why are same files conflicting?
- Reorganize - Split collections or use branches
- Coordinate - Establish team conventions
- Automate - Use conflict resolution rules
Complex Merges
For complex conflicts:- Export Both Versions - Save local and remote versions
- Manual Merge - Use external diff tool
- Import Result - Import merged version back
- Verify - Test thoroughly before committing
Troubleshooting
Cannot resolve conflict
Cannot resolve conflict
Symptoms: Resolution fails or creates errorsSolutions:
- Export both versions for manual review
- Check JSON syntax is valid
- Restore from backup if needed
- Contact team to coordinate resolution
Conflict resolution UI not showing
Conflict resolution UI not showing
Symptoms: Conflict detected but no UI appearsSolutions:
- Check notification settings
- Manually open conflict panel
- Review sync logs for details
- Restart Auk if needed
Resolved conflict reappears
Resolved conflict reappears
Symptoms: Same conflict appears after resolutionSolutions:
- Ensure resolution was committed
- Check sync completed successfully
- Verify remote has your changes
- May need to force push (with caution)
Next Steps
Auto Sync
Configure automatic synchronization
Troubleshooting
Solve common Git sync issues
Best Practices
Learn Git collaboration best practices
Workspace Organization
Organize workspaces to prevent conflicts