0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

git ブランチ名を打ち間違えたときに直す方法

Posted at

概要

  • 新規に作業ブランチを切ったらブランチ名を打ち間違えていたことに気づいたとき、その場ですぐにローカルのブランチ名を変更できます。
  • ただし、リモートにプッシュ済みのブランチは変更してしまうと他の作業者に影響が及ぶので慎重に行いましょう。

ブランチ名の変更

# 作業ブランチを作成
git checkout -b feature/create-bugs
# あっブランチ名まちがえた!
git branch -m feature/create-bugs-life
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?