--- syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- # git rename-branch > Rename a Git branch. > Part of `git-extras`. > More information: . - Rename the branch you are currently on: `git rename-branch {{new_branch_name}}` - Rename a specific branch: `git rename-branch {{old_branch_name}} {{new_branch_name}}`