remote branch を削除する方法
忘れないうちにメモ
~/dev/git/test (master)
$ git checkout -b testbranch
Switched to a new branch "testbranch"
~/dev/git/test (testbranch)
$ vim test.txt
~/dev/git/test (testbranch)
$ git commit -a
Waiting for Emacs...
Created commit 7dea716: modified test.txt
1 files changed, 1 insertions(+), 0 deletions(-)
~/dev/git/test (testbranch)
$ git push origin testbranch
Counting objects: 5, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 267 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
refs/heads/testbranch: 0000000000000000000000000000000000000000 -> 7dea716ff6f4984c3d0256d09279e9d954af3dc4
To git@github.com:typester/test.git
* [new branch] testbranch -> testbranch
~/dev/git/test (testbranch)
$ git checkout master
Switched to branch "master"
~/dev/git/test (master)
$ git branch -D testbranch
Deleted branch testbranch.
~/dev/git/test (master)
$ git push origin :heads/testbranch
refs/heads/testbranch: 7dea716ff6f4984c3d0256d09279e9d954af3dc4 -> deleted
To git@github.com:typester/test.git
- [deleted] testbranch