3
4

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.

EGitには装備されていないために使うGitコマンド(備忘録)

Last updated at Posted at 2013-05-27

リモートブランチの削除(push)

GitHubに削除する場合

リモートブランチの確認

$ git branch -r
origin/test_branch_2
origin/test_branch_1
origin/master

削除したいブランチをpush
※空のブランチをpushするってのがポイント

$ git push origin :test_branch_2

タグ作成とリモートへのpush
$ git tag test_tag
$ git push origin test_tag

全てのタグを一変にpushするときは以下でも可能
$ git push --tags origin

ローカルとリモートからタグを削除
※ブランチのときと同様、空のタグをpushするのがポイント
$ git tag -d test_tag
$ git push origin :refs/tags/test_tag

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?