Gets the current branch name. In detached HEAD state, returns "HEAD".
The branch name if successful, null otherwise
Use object params version
Gets the current branch name. In detached HEAD state, returns "HEAD".