How to Rename a Git Branch
Git Rename Branch
To rename a Git branch, run the following command: git branch -m <old> <new>.This will change the name of the branch you are viewing to the new name you specify. The “old” is the name of the branch you want to rename and “new” is the new name for the branch.
$ git branch -m <old> <new>
Note : You don't need to specify the old branch name if you want to rename the current branch you are in.
after running the above command, your branch will look like shown below:
To Check all your branch List you created:
Thanks for reading...
© Copyright - 2018 - 2023 | All rights reserved at Funda of Web IT