How to change branch name
git branch name 변경하기
첫번 째 방법
Then, you can use git status to see your new branch name.
두번 째 방법
Step 1: Make sure you are in the master/main branch
If you are not in the master/main branch, then you will need to run git checkout master or git checkout main.
Step 2: Use the -m flag to rename the branch
This is what it would look like to rename the test-branch to test-branch2.
To see your new branch name, you can run git branch which will list all of your branches.
Last updated