GIT-GRAFT(1)
π git-graft β bestie's guide to the merge-and-destroy π
okay so welcome to git-graft, straight out of the Git Extras fam β¨ this is a little extra command that does a thing git itself won't just hand you, and honestly? it's giving main character energy.
β¨ NAME β¨
git-graft β merge a branch and then destroy it π
like, merge it. then yeet it. both. in one go.
π¦ SYNOPSIS π¦
git-graft <src-branch> <dest-branch>
two arguments, that's the whole vibe, no cap π«Ά
πΈ DESCRIPTION πΈ
okay so here's the tea π΅ β git-graft merges the commits from <src-branch> into <dest-branch>.
that's it. that's the description. two branches go in, one merge comes out, and the source branch gets grafted (read: merged) into its new home π
π OPTIONS π
<src-branch>β the branch you're pulling commits from. the source. the origin story. the one getting grafted in π±<dest-branch>β the branch you're merging commits into. the destination. the new home. the one that receives π‘
that's literally it, two little placeholders, no flags, no vibes to configure, iconic behaviour tbh π
π EXAMPLES π
watch this:
$ git graft new_feature dev
so new_feature gets merged into dev. new_feature said "I'm done here" and dev said "welcome home bestie" π«Άβ¨
π AUTHOR π
Written by Kenneth Reitz <me@kennethreitz.com> β thank you for your service, we are obsessed π
π REPORTING BUGS π
found something cursed? not me discovering a bug π go here:
<https://github.com/tj/git-extras/issues>
they want to hear about it, fr fr.
π₯ SEE ALSO π₯
the whole git-extras universe lives there, go explore, it's a whole mood π
π real talk though: this command destroys the given branch. merging and destroying, in one motion. so make sure that's what you want before you let it cook, okay? no cap. π¨
and that's the page!! this is from Git Extras, dated May 2026 β mwah, go merge responsibly, love u, bye πππ¦
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms