FHIR Chat · local branches · committers/git-help

Stream: committers/git-help

Topic: local branches


view this post on Zulip 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...?

view this post on Zulip 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.

view this post on Zulip Grahame Grieve (Oct 11 2018 at 18:28):

.. one at time...

view this post on Zulip Grahame Grieve (Oct 11 2018 at 18:28):

but thanks

view this post on Zulip 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

view this post on Zulip Josh Mandel (Oct 11 2018 at 18:30):

https://stackoverflow.com/a/50760584 purports to be a Windows formulation

view this post on Zulip Grahame Grieve (Oct 11 2018 at 18:31):

hmm. there's always a way to make things more complicated...

view this post on Zulip 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