Allow for branch names to be printed

At the moment, only prints the branch name if the commit only exists on that
branch, so if you create a commit on a branch and merge it into another the
branch name won't be printed. Not sure how to resolve this yet.
Fix bug where author name wasn't picked up in git command