I found better one line command ``` git branch | grep -o "\* \(.*/\)*[A-Z]\{2,\}-[0-9]\+" | grep -o "[A-Z]\{2,\}-[0-9]\+" ``` Source https://bitbucket.org/snippets/atlassian/qedp7d
I found better one line command
Source https://bitbucket.org/snippets/atlassian/qedp7d