I'm in process of merging two branches (using git mergetool
), when I find a bug in one of the branches that warrants a fix in its own right. The fix is simple, but I'm one hour into merging the branches (and of course I don't want to lose my work), and it seems that it will take another hour to finish the merging (so I'll probably forget about it by then). What's the best way to deal with this situation?
Edit: the problem is that the bug will need to be fixed on the original branch too, which seems hard to do in the process of merging. Plus I don't know if it is good practice to fix the same bug in two different commits.