Figure out the default branch of the current Git repo.

git_branch_default()

Value

A branch name

Examples

if (FALSE) { git_branch_default() }