git删除本地分支、删除远程分支

1、查看所有分支

git branch -a

2、查看当前所在分支

git branch

3、删除本地分支

git branch -d branch_name

4、删除远程分支

git push origin --delete branch_name

Leave a comment

Your email address will not be published. Required fields are marked *