Suppose we have an application that\'s stable.
Tomorrow, someone reports a big ol\' bug that we decide to hotfix right away. So we create a branch for that hotfix off o
What you need to do is tag anything that you release. Keep branches around for when you are actively developing.
Delete old branches with
git branch -d branch_name
Delete them from the server with
git push origin --delete branch_name
or the old syntax
git push origin :branch_name
which reads as "push nothing into branch_name at origin".
That said, as long as the DAG (directed acyclic graph) can point to it, the commits will be there in history.
Google "git-flow" and that may give some more insight on release management, branching and tagging.