useGit API
    Preparing search index...

    Function branchExists

    • Check if a local branch exists.

      Parameters

      • name: string

      Returns Promise<boolean>

      await branchExists("main")
      

      1.0.0