To rename a branch created locally, what you need to do is:
- First, go to the branch you want to rename:
git checkout my_branch_1
- then, rename your current branch by typing the following command:
git branch -m my_new_name_branch_2
if you display all branches (git branch) you will in green color the new name of your branch
No comments:
Post a Comment