I use this to list my branches by name. If you want to reusue it, change the grep /ts
to grep /yournamespace
function branches() {
git for-each-ref --sort=-committerdate refs/heads/ | grep /ts | awk '{print $3}' | sed 's|refs/heads/||g'
}
function branches_all() {
git for-each-ref --sort=-committerdate refs/heads/ | awk '{print $3}' | sed 's|refs/heads/||g'
}