GIT-BRANCHMOVE(1)
β¨ git-branchmove β¨
okay so bestie, let me put you on to git-branchmove β it's a little Perl situation from the User Contributed Perl Documentation corner of the internet, and it does exactly one thing but it does it so well: it moves branches to or from a remote. no cap. π
πΈ SYNOPSIS πΈ
git-branchmove [--detach|-d] get|put remote pattern...
that's it, that's the whole vibe check. get or put, a remote, and a pattern. periodt. π
π¦ DESCRIPTION π¦
so here's the tea π: this thing moves branches that match pattern to or from the git remote called remote. that's the whole plot. short, sweet, iconic, no filler. β¨
π OPTIONS π
--detach,-dβ okay so picture this: the move is about to delete the branch you're literally standing on in the source repository π. with this flag, it'll try to detachHEADfirst so you don't get got. main character energy fr fr.
β οΈ lowkey important though β for thegetoperation specifically, the whole "detachHEAD" attempt is somewhat fragile. it's giving delicate. π«Ά you'll need unrestricted SSH access to the remote, andpushInsteadOfgit configuration keys will not always be expanded, because of limitations in git itself. so like... know that going in. π
π AUTHOR π
this Perl glow-up of git-branchmove was written by Sean Whitton <spwhitton@spwhitton.name>, building on an earlier shell script by Ian Jackson. π
and ngl, that original script made some assumptions that this version tries to avoid, so it plays nice with more git remotes and more local git configurations. it's giving considerate. it's giving thoughtful. we love to see it. π
and that's the whole page bestie!! brought to you by perl v5.40.1, dated 2026-02-03 β yeah, the GIT-BRANCHMOVE(1) era, we were all there π¦β¨ go move some branches, you got this π
π
π¦ where this page comes from
- ubuntu resolute: chiark-scripts 8.0.1build1
- ubuntu stonking: chiark-scripts 8.0.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms