What I would like to do is to checkout a single file or a set of files with a common name part like this
git checkout myBranch */myFile.md and
git checkout myBranch */myFile.md
<
Knowing that git returns branch list names from 3rd char, one can just switch to needed branch defined via [mask]:
BRANCH_NAME=$(git branch --list | grep [mask] | cut -c3-) git checkout ${BRANCH_NAME}