LoginSignup
4
8

More than 5 years have passed since last update.

ブランチの名前をミスったときの対処法

Posted at

ローカルのブランチ名変えてから、リモートのブランチを消して、もう1回ブランチをプッシュすればOK。

ローカルのブランチ名変更

ミスった名前の例:syaro
新たしい名前の例:sharo
$ git branch -m syaro sharo

リモートのブランチ削除

$ git push origin :syaro

変更済みローカルブランチをプッシュ

$ git push origin sharo

これでOK

4
8
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
4
8