Function init

  • Run git init and verify that the user.name and user.email configs are set (at any level). Throws an error if git init fails.

    If user.email and user.name aren't already set globally, and the missing value is provided in params, set it at the repo level. Otherwise, throw an error.

    Parameters

    • options: GitInitOptions

    Returns void

  • Parameters

    • cwd: string
    • Optional email: string
    • Optional username: string

    Returns void

    Deprecated

    Use object params version