GIT-RENAME-BRANCH(1)
π git-rename-branch β the glow-up your branch name deserves
okay bestie, welcome to git-rename-branch (that's the manual page for the git-rename-branch command, part of the git-extras collection, fr fr). it renames a local branch AND pushes the new one to the remote, so likeβ¦ it's giving full makeover, not just a haircut. π
β¨ SYNOPSIS β¨
git-rename-branch <old-branch> <new-branch>
that's it. that's the whole vibe. two args and we're gone π¦
πΈ DESCRIPTION πΈ
Rename local branch and push the new branch to remote. that's the whole plot of this movie, no plot twists, no secret side quests. the new name goes up to the remote too, so nothing gets left behind looking dusty. β¨
π OPTIONS π
<old-branch>β the old branch, the one that has to be renamed. this one is optional, bestie! if you don't supply a value, then the current branch gets renamed instead. so you can just point at the one you're standing in and say "yeah, that one." π<new-branch>β the new branch name. the glow-up name. the main character name. pick it with love. π
π« EXAMPLES π«
renaming a specific branch, old name β new name:
$ git rename-branch old-name new-name
renaming whatever branch you're currently on, because you're lazy and that's valid:
$ git rename-branch new-name
π«Ά AUTHOR π«Ά
Written by Hozefa Jodiawalla <hozefarules@gmail.com> β shoutout to the legend, we love a builder. π
π REPORTING BUGS π
Found a bug? not the vibe, but tell the devs here:
<https://github.com/tj/git-extras/issues>
π SEE ALSO π
<https://github.com/tj/git-extras> β the whole git-extras universe, go explore, it ate. π₯
okay that's the page!! π this is from Git Extras, dated May 2026, and it's the manual for GIT-RENAME-BRANCH(1) β now go rename that branch and slay, periodt. πΈπ¦β¨
π¦ 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