After cloning the repo from the remote, I am in a branch master. When you enter git branchto view the list of branches in the list will be only master.
Over time, we check existing branches, and also create new branches, connecting a new work with masterand clicking on origin. Now, having typed git branch, you will see a long list with dozens of branches.
How can I reduce the list by deleting certain branches from the list, keeping others in the list?
Update 1 . To clarify, I'm not interested in deleting any branch from the repo (and, definitely, not from the remote repo). Just simplifying navigation between the subset of branches that I regularly use at a given time.
Update 2 : Consider -
$ git clone myrepo
$ git branch
* master
$ git checkout mybranch
$ git branch
master
* mybranch
$ git checkout master
$ git branch
* master
mybranch
$ git "I'll not be dealing with mybranch for 91 days, do something to clean the list"
$ git branch
* master
(playing DOOM for 91 days)
$ git checkout mybranch
$ git branch
master
* mybranch