“Git Excluir todas as filiais locais” Respostas de código

Exclua todas as filiais locais Git

git branch --merged | grep -v \* | xargs git branch -D 
Joyous Jay

Git Excluir todas as filiais, exceto mestre

git branch | grep -v "master" | xargs git branch -D
Hungry Hedgehog

Como excluir todos os ramos no Git, exceto mestre

$ git branch | grep -v '^*' | xargs git branch -D
Successful Snail

Como excluir todas as filiais no Git Local

git branch | grep -v "main" | xargs git branch -D
Healthy Hyena

Git Excluir todas as filiais locais

git for-each-ref --format '%(refname:short)' refs/heads | grep -v master | xargs git branch -D
Stormy Serval

Remova toda a filial Git local

git branch | grep -v "develop" | grep -v "master" | xargs git branch -D
Vivacious Vole

Respostas semelhantes a “Git Excluir todas as filiais locais”

Perguntas semelhantes a “Git Excluir todas as filiais locais”

Mais respostas relacionadas para “Git Excluir todas as filiais locais” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código