diff --git a/pages/common/git-graft.md b/pages/common/git-graft.md new file mode 100644 index 0000000000..25d76e39f2 --- /dev/null +++ b/pages/common/git-graft.md @@ -0,0 +1,9 @@ +# git graft + +> Merge commits from a specific branch into another branch and delete the source branch. +> Part of `git-extras`. +> More information: . + +- 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}}`