Get local branch name only:
git status -b -u no | awk 'NR==1{print $3;}'
Get remote branch name only:
git status -b -u no | awk 'NR==2{print $6;}'
and git status -b -u no | awk 'NR==2{print $6;}' | tr -d "[.']"
to delete special characters from the output