Angel Ruiz
clean, clean-up, remove, repositories, prune, local, remote, branches

Git housekeeping: remove "redundant" branches from the remote and your local repositories

Angel Ruiz clean, clean-up, remove, repositories, prune, local, remote, branches

git clean

Recently I was faced with the task of cleaning up a Git repository whose branches were not "pruned" for a few years, so I am talking about several hundreds of branches.

This situation can make using Git through the command line or a GUI front-end client a very cumbersome experiece. That's why I usually recommend, as a general rule, to delete any feature or bugfix branch after it gets merged to a "higher level" branch. Because they became "redundant".

The

Read More