Files
cheatsheet-tldr/tldr/git-merge-tree
2025-10-21 00:19:51 +00:00

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