Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 315 Bytes

rename-a-branch.md

File metadata and controls

19 lines (13 loc) · 315 Bytes

How to Rename a Branch


Change the name of a branch in your repository.

$ git branch -m <old_name> <new_name> 

Check the list of your branches to make sure you successfully renamed the branch.

$ git branch
main
<new_name> 

link