Does git or at least GitHub have the ability to send old and unused branches to an archive somewhere?

Suppose I created a branch to add some new feature to my project. Then, having realized this opportunity, I merge this branch in master. Now I don’t need this branch anymore, however I don’t want to delete it in order to preserve the development history of the project. But I don't want to see her in the list of branches either.

  • Is it possible to somehow mark such a branch as archival so that it is not displayed in the list of branches?
  • And in general, is it possible to group branches into categories? So that you can easily see which branches are archived, which are being tested, which are in development, etc.
  • just putting them a tag not an option? - Fat-Zer
  • @ Fat-Zer can explain in more detail how to apply tags for this purpose? - Asem
  • git tag archive/good-old-branch good-old-branch && git branch -d good-old-branch and, if necessary, git push origin :good-old-branch && git push origin archive/good-old-branch - Fat-Zer
  • “I don’t want to delete it in order to preserve the development history of the project” - but you’ve merged everything into a master, and the whole story is there now, why keep the original branch? - Vasilisa

0