LoginSignup
0
0

More than 5 years have passed since last update.

GitHubのブランチ名変更方法

Last updated at Posted at 2018-12-31
  1. ロカールブランチ名変更
# カレントブランチに入っている場合
$ git branch -m new-branch-name
# OR
# カレントブランチに入っていない場合
$ git branch -m old-branch-name new-branch-name
  1. リモートリポジトリブランチ名変更
$ git push origin :old-branch-name new-branch-name
0
0
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
0
0