LoginSignup
971
539

More than 1 year has passed since last update.

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

Last updated at Posted at 2015-05-20

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

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

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

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

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

971
539
0

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
  3. You can use dark theme
What you can do with signing up
971
539