await repo.init([options])
This will call git init and set the default branch name to main.
git init
main
The method accepts the following options:
bare
true
false