• Create a commit given one or multiple commit message(s).

    Parameters

    • message: string | string[]
    • Optional options: {
          skipHooks: boolean;
      }
      • skipHooks: boolean

    Returns Promise<void>

    Example

    await commit("My Commit"); // execute `git commit -m "My Commit"`.
    await commit(["My Commit", "My Second Commit"]); // execute `git commit -m "My Commit" -m "My Second Commit"`.

Generated using TypeDoc