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 1 year has passed since last update.

Git ブランチ削除方法(ローカル、リモート)

Posted at

ローカルのブランチを削除する

削除したいブランチに移動

git checkout <branch>

ローカルブランチの削除

git branch -d <branch>

マージしていないブランチなど削除の場合は-Dを指定して強制削除をしてあげる。

git branch -D <branch>

リモートのブランチを削除する

git push origin :<branch>

これでgithubから見てもブランチが削除されているはずです。

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?