Return the current branch name.
repo – The current git repository.
The current branch name or None if detached.
str or None