Git Workflows: Archiving Old Branches
I decided to take some time today to clean up old sprint branches that have been resting in Git unused. Some for well over a year. I had two goals I wanted to accomplish when trying to come up with a workflow. First, I wanted the list of branches that display with the command git branch -a (which I have conveniently aliased to just gb) to be shortened. Second, I didn't want to lose any of the commits part of old branches. Sure the commits were already merged into the master branch, but I didn't want to lose commit chain that was stored as branches.
My solution was to archive each branch as a tag then remove the branches from Git on my local machine as well as the Git origin server.

