useGit API
    Preparing search index...

    Function commit

    • Record changes to the repository.

      Parameters

      • this: useGit API
      • message: string | undefined
      • Optionaldescription: string

      Returns Promise<useGit API>

      await git.add()
      await git.commit("feat: add new API")

      await git.commit(
      "fix: handle empty input",
      "This fixes a bug where empty input caused a crash.",
      )

      await git.commit("chore: release", { flags: ["--amend"] })

      await git.commit(
      "feat: improve API",
      "Adds better typing and docs.",
      { flags: ["--signoff"] },
      )

      add

      0.3.0

    • Record changes to the repository.

      Parameters

      Returns Promise<useGit API>

      await git.add()
      await git.commit("feat: add new API")

      await git.commit(
      "fix: handle empty input",
      "This fixes a bug where empty input caused a crash.",
      )

      await git.commit("chore: release", { flags: ["--amend"] })

      await git.commit(
      "feat: improve API",
      "Adds better typing and docs.",
      { flags: ["--signoff"] },
      )

      add

      0.3.0

    • Record changes to the repository.

      Parameters

      Returns Promise<useGit API>

      await git.add()
      await git.commit("feat: add new API")

      await git.commit(
      "fix: handle empty input",
      "This fixes a bug where empty input caused a crash.",
      )

      await git.commit("chore: release", { flags: ["--amend"] })

      await git.commit(
      "feat: improve API",
      "Adds better typing and docs.",
      { flags: ["--signoff"] },
      )

      add

      0.3.0