LoginSignup
526

More than 1 year has passed since last update.

posted at

updated at

gitのローカルのブランチ名を変更したい

ローカルのブランチ名を変更する方法です。Pull Requestのissue番号を間違っていたときなどに活躍します。

git branch -m <古いブランチ名> <新しいブランチ名>

今開いているブランチをリネームする場合は、単純に新しいブランチ名を指定するだけです。

git branch -m <新しいブランチ名>

最後までお読みくださりありがとうございました。Twitterでは、Qiitaに書かない技術ネタなどもツイートしているので、よかったらフォローお願いします:relieved:Twitter@suin

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
526