Git gitbranch 17/02/2016

Get name of current branch

Get name of the current git branch:

git rev-parse --abbrev-ref HEAD