mオプション
ブランチ名を変更する際に、
-mオプションを使う。
コマンド
$ git branch -m [古いブランチ名] [新しいブランチ名] $ git branch -m old-feature new-feature
Mオプションの使用には注意
参考資料
[公式ドキュメント] https://git-scm.com/book/ja/v2/Git-%E3%81%AE%E5%9F%BA%E6%9C%AC-%E3%82%BF%E3%82%B0
ブランチ名を変更する際に、
-mオプションを使う。
コマンド
$ git branch -m [古いブランチ名] [新しいブランチ名] $ git branch -m old-feature new-feature
[公式ドキュメント] https://git-scm.com/book/ja/v2/Git-%E3%81%AE%E5%9F%BA%E6%9C%AC-%E3%82%BF%E3%82%B0