Renaming Git Branches Locally and Remotely
Renaming a Git branch involves three steps: rename locally, push the new branch, and delete the old remote branch. How you do this depends on whether you’re working from the command line or your Git hosting platform’s UI. Rename the branch locally The simplest command renames a branch in your local repository: git branch -m…
