## 25 rebase conflict: git mergetool then git rebase --continue $ git rebase main Rebasing (1/1) Auto-merging f CONFLICT (content): Merge conflict in f error: could not apply 10cd7fc... t hint: Resolve all conflicts manually, mark them as resolved with hint: "git add/rm ", then run "git rebase --continue". hint: You can instead skip this commit: run "git rebase --skip". hint: To abort and get back to the state before "git rebase", run "git rebase --abort". Could not apply 10cd7fc... t [exit 1] # answer step 1, with no merge tool configured and stdin closed $ git mergetool --no-prompt This message is displayed because 'merge.tool' is not configured. See 'git mergetool --tool-help' or 'git help config' for more details. 'git mergetool' will now attempt to use one of the following tools: tortoisemerge emerge vimdiff nvimdiff Merging: f Normal merge conflict for 'f': {local}: modified file {remote}: modified file Hit return to start merge resolution tool (vimdiff): [exit 1] # answer step 2 straight after $ git rebase --continue f: needs merge You must edit all merge conflicts and then mark them as resolved using git add [exit 1] # with a merge tool configured (non-interactive test tool that keeps both sides) {local}: modified file {remote}: modified file $ git status --short M f ?? f.orig ?? f_BACKUP_564 ?? f_BASE_564 ?? f_LOCAL_564 ?? f_REMOTE_564 [exit 0] $ git rebase --continue [detached HEAD 5e668ad] t 1 file changed, 1 insertion(+) Successfully rebased and updated refs/heads/topic. [exit 0] a main topic