Get the current branch from the current git directory
github.com/johnotander/git-current-branch
johnotander/git-current-branch