Conflicts Pro
What happens when a file changed both in Temper and on GitHub or GitLab, and how to resolve it.
A conflict is a file that changed in the working copy and on the branch since your last sync. Temper never merges the two and never overwrites your version without asking.
When a pull finds conflicts#
The pull dialog lists them: "Changed here and on GitHub, so your versions were kept: files. Committing will overwrite GitHub with your versions."
Everything else from the branch is pulled as usual. Then choose:
| You want | Do this |
|---|---|
| Your versions | Do nothing. Your next commit replaces the branch's versions with yours. |
| The branch's versions | Click Use GitHub's versions (or GitLab's) in the pull dialog and confirm. Your changes to those files are replaced. |
| A mix | Open each file, compare it with the branch on GitHub or GitLab, combine the changes by hand and save. Then commit. |
Why your next commit wins#
After a pull with conflicts, Temper records the branch's versions as seen. So the next commit deliberately sends your versions. If you want to keep changes from both sides, combine them before you commit.
Avoiding conflicts#
- Pull before you start, and before you commit.
- Commit when you publish, so the branch follows the live site.
- Don't edit the same files in Temper and elsewhere at the same time.