힘내 브랜치 이름 바꾸기
git branch -m <oldname> <newname> # Any Branch
git branch -m <newname> # Current Branch
# For windows if you get "Branch already exists" error
git branch -M <newname>
브랜치 이름 바꾸기 힘내
git branch -m <new_name>
git 로컬 브랜치 이름 바꾸기
git branch -m <oldname> <newname>
git 로컬에서 브랜치 이름 바꾸기
1. 'Start by switching to the local branch which you want to rename:'
git checkout <old_name>
2. 'Rename the local branch by typing:'
git branch -m <new_name>
git 로컬 분기 이름 변경
git branch -m <newname>
git 에서 원격 분기 이름 바꾸기
git push origin :<branch_to_rename>
git checkout -b <new_branch_name>
git push --set-upstream origin <new_branch_name>