-
Notifications
You must be signed in to change notification settings - Fork 4
Conflict Resolution Guide
Conflicts happen when the same file is edited in two different places before they can sync.
Common situations:
- You edit a file on your laptop
- Someone else edits the same file on their computer
- Both try to sync - conflict detected!
Ogresync uses a simple 2-step process to fix conflicts safely:
When conflicts happen, you get three options:
Smart Merge - Try to combine both versions automatically
- Works well when changes don't overlap
- Ogresync figures out what to keep from each version
Keep Local - Use your version
- Keeps the changes you made
- Discards the other person's changes
Keep Remote - Use their version
- Keeps the other person's changes
- Discards your changes
If Smart Merge can't handle everything automatically:
- You'll see a list of files that need attention
- Click on each file to see both versions
- Choose which parts to keep from each version
When conflicts need your attention, Ogresync opens a simple window showing:
Left Side: Your Version
- Shows your changes
- Highlights what you added/changed
Right Side: Their Version
- Shows the other person's changes
- Highlights what they added/changed
Bottom: Merged Result
- Shows the final version after you make choices
- Updates as you select which parts to keep
- Click sections to choose which version to keep
- Green = keeping this part
- Red = removing this part
- Edit the merged result directly if needed
Best Practices:
- Sync Often - Don't let changes pile up
- Communicate - Let teammates know when you're editing shared files
- Work on Different Files - Avoid editing the same file simultaneously
- Use Branches - For major changes, create separate branches
Smart Editing:
- Edit different sections of the same file
- Add comments about what you're changing
- Make smaller, focused edits rather than big changes
Don't Panic! Ogresync creates backups before making changes.
Look in your synced folder for:
-
_ogresync_backups/folder - Files are named with timestamps
- Multiple versions are kept
- Find the backup file with the right timestamp
- Copy it back to your main folder
- Rename it to remove the backup timestamp
- Let Ogresync sync the restored version
If everything gets messed up:
- Stop Ogresync
- Copy your important files somewhere safe
- Delete the
.gitfolder in your synced directory - Run Ogresync setup again
- Copy your files back and let it sync
Problem: You edit the top of a file, someone else edits the bottom Solution: Smart Merge usually handles this automatically
Problem: Both people edit the same paragraph Solution: Review both versions and choose the best parts
Problem: You delete a file, someone else modifies it Solution: Choose whether to restore the file or keep it deleted
Problem: Many files have conflicts Solution: Take your time, handle them one by one
Still Confused?
- Check the FAQ for quick answers
- Look at Troubleshooting for common problems
- Ask questions in the GitHub discussions
Remember: Conflicts are normal when multiple people work on the same files. Ogresync makes them safe and easy to handle!