Reputation:
My team has already merged branches of a project into master and deployed the changes. Our DevOps guy is wondering whether there's any benefit in keeping those old remote branches on GitHub.
Is there any metadata in a branch that is lost once it's deleted after being merged into another branch?
Upvotes: 4
Views: 550
Reputation: 59
You must tag before deleting so that a reference to the branch is retained. Once deleted, it will no longer show up in your list of branches, but will still be accessible if necessary via the tag.
See this answer here: Git branch deletion
Upvotes: 2
Reputation: 5159
A branch is only a name that points to a commit. Deleting branches that have been merged into master
(or equivalent) loses no information.
Upvotes: 4