Re: how to hide some branches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pascal Obry wrote:
> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux