Need git branch command to list only approved branches

Hi , 

I am looking for a git command which gives me only approved branch names. 

Git branch --all --no-merged giving me all branches but I need to exclude or identify rejected branches .

Help is really appreciated 


Hi @testabk,

Could you please give me a bit more context as to what you mean by ‘approved’ and ‘rejected’ branches in your scenario? Are you using pre-receive hooks to limit what branches can be named?


1 Like