Re: how to hide some branches
- From
- Pete Harlan <pgit@pcharlan.com>
- Date
- Nov 30, 2008, 20:09 UTC
- Message-ID
- <4932F2FD.9030603@pcharlan.com>
- In-Reply-To
- <493261C9.4040608@obry.net>
Pascal Obry wrote:
Show 10 quoted lines
> Hello everyone, > > I create a new branch for every new feature/fix I work on. After some > time I have many (too much) branch listed when doing: > > $ git branch > > I'd like to hide some (not removing them). > > Is there a solution for this?
>From a suggestion by Jakub Narebski, I use an alias "lb" that shows
the most recently-active 8 branches:
for-each-ref --format='%(refname:short)' \
--sort=-authordate --count=8 refs/heads/--Pete