git命令行删除远程分支

https://blog.csdn.net/furzoom/article/details/53002699
先查看远程分支
git branch -r
使用下面两条命令来删除远程分支
git branch -r -d origin/branch-name
git push origin :branch-name
$ git checkout master
Checking out files: 100% (1584/1584), done.
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
Admin@DESKTOP-6FJEOP2 MINGW64 /e/dev.www/yansiyu.dev.data.test.com (master)
$ git branch -D test
Deleted branch test (was 6b0bfc5).
Admin@DESKTOP-6FJEOP2 MINGW64 /e/dev.www/yansiyu.dev.data.test.com (master)
$ git branch -r -d origin/test
Deleted remote-tracking branch origin/test (was 6b0bfc5).
Admin@DESKTOP-6FJEOP2 MINGW64 /e/dev.www/yansiyu.dev.data.test.com (master)
$ git push origin :test
To code.test.com:ZBT/data.test.com.git
 - [deleted]         test

    A+
发布日期:2018年11月12日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: