GIT-DELETE-BRANCH(1)

πŸ’… GIT-DELETE-BRANCH πŸ’…

okay bestie, so you know git-extras? yeah. this is one of its little icons, and fr fr it's the moment you've been waiting for: the manual page for git-delete-branch, served fresh from the Git Extras fam. no cap. πŸŽ€


✨ NAME ✨

git-delete-branch β€” it deletes branches. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

git-delete-branch <branchname>

πŸ’– DESCRIPTION πŸ’–

So here's the tea: this one goes in and deletes both the local and the remote branch named <branchname>. two for one, she ate. πŸ’…

⚠️ but bestie, listen β€” the local deletion fails if the branch is checked out. like, git will not let you delete the branch you're literally standing on. sorry babe, that's just the rules. 😭

πŸŽ€ OPTIONS πŸŽ€

  • <branchname> β€” the name of the branch you wanna delete. and here's the gag: if you hand over multiple branches, they will all get deleted. not one. not two. all. she's thorough. πŸ‘‘

🌈 EXAMPLES 🌈

just one? okay, here:

$ git delete-branch integration

feeling spicy and wanna clear a whole squad at once? bet:

$ git delete-branch integration bug/1234

look at that. two branches, one command, zero regrets. ✨


πŸ‘‘ AUTHOR πŸ‘‘

Written by Tj Holowaychuk <tj@vision-media.ca> β€” thank you king, icon, legend. 🫢


πŸ› REPORTING BUGS πŸ›

found a gremlin in the code? go tell on it here, it's giving very much official:

<https://github.com/tj/git-extras/issues>


πŸ”₯ SEE ALSO πŸ”₯

the whole entire mothership, go explore bestie:

<https://github.com/tj/git-extras>


That's the page, mwah. πŸ’‹ This one's from the Git Extras collection, dated May 2026 β€” the GIT-DELETE-BRANCH(1) girlie herself. Go forth and clean up those branches, you absolute main character. β­πŸŒ™πŸ’œ

πŸ“¦ where this page comes from