.TH GIT-REDIFF 1 GIT-REDIFF .SH NAME git-rediff - Reduce partially resolved merge conflicts .SH SYNOPSIS .B git rediff .RB [ --merge | --symmetric | --select-head | --select-tail ] .RB [ --remove-base ] .RB [ --no-reduce ] .RB [ -i ] .RI [ "...]" .SH DESCRIPTION .B git rediff rewrites files containing merge conflicts to remove conflicts that have been resolved. .SH OPTIONS .TP .B -i .TQ .B --interactive Interactively select the action for each merge conflict. See .BR "INTERACTIVE COMMANDS" . This overrides all other options. .TP .B --no-interactive Disable .BR --interactive . .TP .B -m .TQ .B --merge For conflicts with at least three branches, select the sole branch whose content differs from all other identical branches, but only if that is the top or bottom branch. Applied before .BR --remove-base . .TP .B --no-merge Disable .BR --merge . .TP .B -y .TQ .B --symmetric When the top and bottom branches are identical, select their content if all other branches are identical to each other. Applied before .BR --reduce . .TP .B --no-symmetric Disable .BR --symmetric . .TP .B -r .TQ .B --reduce Enable reduction of remaining conflicts. (Default) .TP .B --no-reduce Do not reduce remaining conflicts after .BR --merge , .BR --remove-base , .BR --select-head , and .B --select-tail have been applied. .TP .B --remove-base Remove the middle branch from three-way merge conflicts. Applied before .BR --reduce . .TP .B --no-remove-base Disable .BR --remove-base . .TP .B --select-head Resolve each merge conflict by selecting its top branch. Applied before .BR --reduce . .TP .B --no-select-head Disable .BR --select-head . .TP .B --select-tail Resolve each merge conflict by selecting its bottom branch. Applied before .BR --reduce . .TP .B --no-select-tail Disable .BR --select-tail . .SH INTERACTIVE COMMANDS .TP .B h Select the top branch. .TP .B t Select the bottom branch. .TP .B b Remove the middle branch (three-way conflicts only). .TP .B m Apply merge selection. .TP .B y Select symmetric branches. .TP .B r Reduce the conflict. .TP .B e Manually edit the conflict. .TP .B s Skip the conflict. .TP .B d Skip the conflict and all later conflicts in the current file. .TP .B q Quit interaction and skip the conflict and all remaining conflicts. .TP .B ? Display help. .SH OPERANDS .TP .I path File to rewrite. If .B - is specified, the file is read from standard input, and the result is written to standard output. .PP If no .I path is specified, standard input is read and the result is written to standard output. .SH EXIT STATUS The following exit values are returned: .TP 0 All merge conflicts were resolved. .TP 1 There are still merge conflicts. .TP 2 An error occurred.