通过Git命令删除本地分支和远程分支的方法

删除本地分支

git branch -d <BranchName>

删除远程分支

git push origin --delete <BranchName>

查看项目的分支们(包括本地和远程)

git branch -a