Stream: committers/git-help
Topic: local branches
Grahame Grieve (Oct 11 2018 at 18:16):
my local list of branches is wondrously long. I care about only one of them: master. I can't see any easy way to tell the others to go away...?
Lloyd McKenzie (Oct 11 2018 at 18:24):
Say you want to switch branches. Click on the "..." button to see a list of all of your branches. From there you can delete them.
Grahame Grieve (Oct 11 2018 at 18:28):
.. one at time...
Grahame Grieve (Oct 11 2018 at 18:28):
but thanks
Josh Mandel (Oct 11 2018 at 18:29):
https://coderwall.com/p/x3jmig/remove-all-your-local-git-branches-but-keep-master if you have access to a shell
Josh Mandel (Oct 11 2018 at 18:30):
https://stackoverflow.com/a/50760584 purports to be a Windows formulation
Grahame Grieve (Oct 11 2018 at 18:31):
hmm. there's always a way to make things more complicated...
Josh Mandel (Oct 11 2018 at 18:32):
Well... It's an option if you want it.
Last updated: Apr 12 2022 at 19:14 UTC