查看删除分支

查看所有分支:

git branch -a

注:remote/origin/master表示的是远程分支

删除远程分支(当前在gh-pages分支):

git push origin --delete gh-pages

切换到master分支:

git checkout master

删除本地分支:

git branch -D gh-pages

原文地址:https://www.cnblogs.com/wang715100018066/p/10535548.html