Linux command
git-graft 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Graft
git graft [feature-branch]
Graft
git graft [feature-branch] [dest-branch]
说明
git graft merges a branch then immediately deletes it, combining git merge followed by git branch -d into a single operation. It is useful for incorporating completed feature branches into the main history while cleaning up branch clutter. Part of the git-extras suite, the command simplifies the common merge-and-delete workflow for branches that should become part of history without keeping the branch reference.
FAQ
What is the git-graft command used for?
git graft merges a branch then immediately deletes it, combining git merge followed by git branch -d into a single operation. It is useful for incorporating completed feature branches into the main history while cleaning up branch clutter. Part of the git-extras suite, the command simplifies the common merge-and-delete workflow for branches that should become part of history without keeping the branch reference.
How do I run a basic git-graft example?
Run `git graft [feature-branch]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more git-graft examples?
This page includes 2 examples for git-graft, plus related commands for nearby Linux tasks.