Returns the name of the current branch

await repo.currentBranchName()

Note that the default branch name (as created by repo.init() will be set to main.