“Git usuń wszystkie gałęzie oprócz mistrza” Kod odpowiedzi

git usuń wszystkie gałęzie oprócz mistrza

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

Git usuń wszystkie gałęzie oprócz mistrza

// -- 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 Usuń wszystkie gałęzie oprócz Windows Master

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

Usuń wszystkie lokalne gałęzie git, ale zachowaj mistrz

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

Jak usunąć wszystkie gałęzie w git, z wyjątkiem mistrza

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

Odpowiedzi podobne do “Git usuń wszystkie gałęzie oprócz mistrza”

Pytania podobne do “Git usuń wszystkie gałęzie oprócz mistrza”

Więcej pokrewnych odpowiedzi na “Git usuń wszystkie gałęzie oprócz mistrza” w PHP

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu