I've found git mergetool to be a handy utility for merging diffs visually, but the way I'm going about it seems really wonky. Essentially, my process looks like this when conflicts are reported:
- Execute a git mergetool
- At the prompt, hit Enter to launch my diff tool (Meld or FileMerge, depending on which computer)
- Resolve the conflicts
- Save the changes
- Close the diff tool
If I have more than one conflict, rinse, repeat. Yep, that's me opening and closing my diff viewer once for each conflict in the merge. Since it's launched from the command line, closing it is the only way I know of to tell git mergetool that I've resolved this particular conflict and that it can move on to the next.
Surely there's a better way, but I have no idea. Li'l help, please? This process seems crazy inefficient.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…