Bash alias to output the current branch, nothing else. Enter this to your .bash_profile
alias gitb='git rev-parse --abbrev-ref HEAD'