From df9b9a9a20c676caedbddd3264c23a491e0cff54 Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Mon, 24 May 2021 13:18:05 +0100 Subject: [PATCH] git-graft: add page (#6034) --- pages/common/git-graft.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pages/common/git-graft.md diff --git a/pages/common/git-graft.md b/pages/common/git-graft.md new file mode 100644 index 000000000..25d76e39f --- /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}}`