現在のいるローカルブランチの名前を変える。
git branch -m <新しいブランチ名>
名前を変えたいローカルブランチにいないとき(masterブランチにいるときなど)。
git branch -m <変えたいブランチ名> <新しいブランチ名>
やってみる。
# testブランチを作成し、チェックアウト git checkout -b test Switched to a new branch 'test' # 現在のブランチ名を変更 git branch -m test-dayo000 # 確認 git branch master * test-dayo000
できた!