Renames a branch both locally and remotelyRenames the given branch in the local and origin repository. Aborts if the new branch name already exists or the tracking branch is out of sync.
- creates a branch with the new name
- deletes the old branch
When there is a remote repository
- syncs the repository
When there is a tracking branch
- pushes the new branch to the remote repository
- deletes the old branch from the remote repository
When run on a perennial branch
- confirm with the "-f" option
- registers the new perennial branch name in the local Git Town configuration
git town rename-branch [<old_branch_name>] <new_branch_name>
--force Force rename of perennial branch