查看本地分支
git branch --list
刪除本地分支,批量
git branch -d `git branch --list`
強(qiáng)制刪本地:git branch -D 分支名
刪除遠(yuǎn)程分支:git push origin --delete 分支名(remotes/origin/分支名)
遠(yuǎn)程分支已刪除,vscode還有記錄,修剪遠(yuǎn)程分支:git remote prune origin
查看本地分支
git branch --list
刪除本地分支,批量
git branch -d `git branch --list`
強(qiáng)制刪本地:git branch -D 分支名
刪除遠(yuǎn)程分支:git push origin --delete 分支名(remotes/origin/分支名)
遠(yuǎn)程分支已刪除,vscode還有記錄,修剪遠(yuǎn)程分支:git remote prune origin