git分支删除

1.列出本地分支:

git branch

2.删除本地分支:

git branch -D BranchName

其中-D也可以是--delete,如:

git branch --delete BranchName

 3.删除本地的远程分支:

git branch -r -D origin/BranchName

4.远程删除git服务器上的分支:

git push origin -d BranchName

其中-d也可以是--delete,如:

git push origin --delete BranchName

猜你喜欢

转载自www.cnblogs.com/boshen-hzb/p/9110902.html