acidbase.git_current_branch

acidbase.git_current_branch() str | None

Return the name of the current Git branch.

Returns:

None if not inside a Git repository.

Return type:

str or None