git删除分支(远程分支及本地分支)

一。查看所有分支(远程分支及本地分支):

git branch -a

二。删除远程分支:

git push origin --delete mytest

三。删除本地分支:

git branch -d mytest

再次使用:git branch -a,查看所有分支,可发现远程和本地的mytest分支都删除了。

猜你喜欢

转载自blog.csdn.net/yzh_1346983557/article/details/89092205