브랜치 이름 바꾸기 힘내
git branch -m <new_name>
로컬 브랜치 이름 변경
git branch -m <newname>
git 로컬 브랜치 이름 바꾸기
git branch -m <oldname> <newname>
분기 이름 편집 git
$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
git 에서 분기 이름을 변경하는 방법
# Start by switching to the local branch which you want to rename:
git checkout <old_name>
# Rename the local branch by typing:
git branch -m <new_name>
# At this point, you have renamed the local branch.
# If you’ve already pushed the <old_name> branch to the remote repository,
# perform the next steps to rename the remote branch.
# Push the <new_name> local branch and reset the upstream branch:
git push origin -u <new_name>
# Delete the <old_name> remote branch:
git push origin --delete <old_name>
# That’s it. You have successfully renamed the local and remote Git branch.
github 에서 분기 이름을 변경하는 방법
$ git branch -m OLD-BRANCH-NAME NEW-BRANCH-NAME
$ git fetch origin
$ git branch -u origin/NEW-BRANCH-NAME NEW-BRANCH-NAME