When working with Git, it's common for projects to contain multiple branches. Sometimes these branches change purpose over time or simply have a naming error, and in such cases it's necessary to rename the branch.
This is a companion discussion topic for the original entry at https://linuxconfig.org/git-rename-branch