“Git Excluir todas as filiais, exceto mestre” Respostas de código

Git Excluir todas as filiais, exceto mestre

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

Git Excluir todas as filiais, exceto mestre

// -- Clear all branches except Master Branch --
git branch -D $(git branch | grep -v 'master')
// This will clear all your branches you have on local that you have 
// not pushed to your repository. eg: IF, you created a branch that was, 
// not pushed it will remain along with amster. 
// But the others will be cleaned.

// -- Delete a single branch
git branch -D branch-name
13Garth

git remove todos os galhos, exceto as janelas mestre

git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
Itchy Impala

Remova todos os seus ramos Git local, mas mantenha o mestre

git branch | grep -v “master” | xargs git branch -D
CL

Como excluir todos os ramos no Git, exceto mestre

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

Respostas semelhantes a “Git Excluir todas as filiais, exceto mestre”

Perguntas semelhantes a “Git Excluir todas as filiais, exceto mestre”

Mais respostas relacionadas para “Git Excluir todas as filiais, exceto mestre” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código