HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

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

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandchangingfileswithoutclibranchesmergegit merge-tree

Problem

How to use the git merge-tree command: Merge branches without changing files. More information: <https://git-scm.com/docs/git-merge-tree>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: common/git merge-tree

Revisions (0)

No revisions yet.