useGit API
    Preparing search index...

    Function currentBranch

    • Get the current branch name.

      Returns Promise<string>

      await currentBranch()
      // main

      1.0.0