- 查看本地分支
git branch
- 删除本地分支
如果当前在待删除的分支上先切换到其他分支
git checkout dev_huangyj
进行删除
git branch -D temp_huangyj
- 查看远程分支
git branch -r
- 删除远程分支
git push origin --delete temp_huangyj
git branch
git checkout dev_huangyj
进行删除
git branch -D temp_huangyj
git branch -r
git push origin --delete temp_huangyj