how to manage obsolete branches on github

0

Issue

I usually develop new features of my codes in dedicated branches, then merge them to master.

The problem with this is that after some time I have a lot of obsolete branches that are cluttering the github interface, where there might be instead branches which are actively developed.

Is there a way to archive them somehow, or should I just delete them, as the commits have already been merged?

Solution

If you have already merged branches and have no need to develop on them anymore, then it’s safe to delete them. You don’t loose any commit, as they have been merged and are now stored in master.

I would only propose to leave branches you actively develop

Answered By – MBO

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More