mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 03:02:08 +02:00

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
9 lines
381 B
Markdown
9 lines
381 B
Markdown
# git graft
|
|
|
|
> Merge commits from a branch into another branch and delete the source branch.
|
|
> 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}}`
|