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

Remova todos os galhos excluídos no controle remoto

# set this alias in git.config
git config --global alias.gone "! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '\$2 == \"[gone]\" {print \$1}' | xargs -r git branch -D"
# then run
git gone
gdfelt

Git Excluir todas as filiais remotas, exceto mestre

git branch -r | grep 'origin' | grep -v 'master$' | grep -v 'develop$' | grep -v HEAD | cut -d/ -f2- | while read line; do git push origin :heads/$line; done;
Glamorous Grouse

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

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

Procure respostas de código populares por idioma

Procurar outros idiomas de código