2
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 5 years have passed since last update.

Gitで不要になったリモートブランチを削除

Posted at

ローカルブランチの削除

構文はこんな感じ

# git branch -d [ブランチ名]

ブランチ名が「test」だった場合

# git branch -d test
warning: deleting branch 'test' that has been merged to
         'refs/remotes/origin/test', but not yet merged to HEAD.
Deleted branch test (was 6926787).
#

リモートブランチの削除

構文はこんな感じ

# git push origin :[ブランチ名]

ブランチ名が「test」だった場合は

# git push origin :test
To git@192.168.1.100:hoge/fuga.git
 - [deleted]         test
#
2
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
2
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?