tldr/pages/common/git-graft.md

10 lines
381 B
Markdown
Raw Normal View History

2021-05-24 13:18:05 +01:00
# git graft
> Merge commits from a branch into another branch and delete the source branch.
2021-05-24 13:18:05 +01:00
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-graft>.
- Merge all commits not present on the target branch from the source branch to target branch, and delete the source branch:
`git graft {{source_branch}} {{target_branch}}`