320 B

git merge-tree

Merge branches without changing files. More information: https://git-scm.com/docs/git-merge-tree.

  • Show the result of a merge between two branches:

git merge-tree {{branch1}} {{branch2}}

  • Perform a merge and write the resulting tree:

git merge-tree --write-tree {{branch1}} {{branch2}}