How to Rename a Git Branch
If you want to rename a git branch, then you have a few options, dependent on the use-case.
Option 1 – Rename a Git Branch
|
|
Option 2 – Rename the Current Branch
|
|
Option 3 – On Windows
Windows required a capital “-M” instead.
|
|
Push the Local Branch and Reset the Upstream Branch
|
|
Delete the Old Remote Branch
|
|