您可以使用递归“他们的”策略选项:git merge --strategy-option theirs从男人:ours This option forces conflicting hunks to be auto-resolved cleanly by favoring our version. Changes from the other tree that do not conflict with our side are reflected to the merge result. This should not be confused with the ours merge strategy, which does not even look at what the other tree contains at all. It discards everything the other tree did, declaring our history contains all that happened in it.theirs This is opposite of ours.注意:正如手册页所述,“我们的”合并策略选项与“他们的”合并策略非常不同。