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