How to Rename Git Local and Remote Branch on Ubuntu

This brief tutorial shows students and new users how to rename Git local and remote branch on Ubuntu 18.04 | 16.04

This should help in cases where you create a git branch and publish to the remote repository but realize its an incorrect naming convention or name for the branch…

You can use the steps below to rename the published branch to a new format or name… You can’t just rename git branch in the repository… you must checkout, the rename the branch, then push the new name and delete the old..

You can use git renaming feature to rename a branch and push to the remote repository easily using the git branch -m command Read More