I have some old branches in my git repository that are no longer under active development. I would like to archive the branches so that they don\'t show up by default when r
I sometimes archive branches as follows:
format-patch ^.. (get firstHash and lastHash using git log .git branch -D "Apply" the patch when you need to use the branch again; however, applying the patch files (see git am) can be challenging depending on the state of the target branch. On the plus side, this approach has the benefit of allowing the branch's commits to be garbage-collected and saving space in your repo.