Git ブランチの名前を変更する 2014-06-14 Pistolfly コメントする https://www.pistolfly.com/weblog/2014/06/%e3%83%96%e3%83%a9%e3%83%b3%e3%83%81%e3%81%ae%e5%90%8d%e5%89%8d%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b.html ツイート ブランチの名前を変更するには、-m オプションを使う。 oldbranchをnewbranchに変更する $ git branch -m <oldbranch> <newbranch> 現在のブランチをnewbranchに変更する $ git branch -m <newbranch> newbranchがすでに存在している場合に上書きするには、-m の代わりに -M オプションを使う。 関連