mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
413 B
Plaintext
18 lines
413 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|