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