Function gitFailFast

  • Run a git command. Use this for commands that make critical changes to the filesystem. If it fails, throw an error and set process.exitCode = 1 (unless options.noExitCode is set).

    The caller is responsible for validating the input. shell will always be set to false.

    Parameters

    • args: string[]
    • Optional options: GitCommonOptions & {
          noExitCode?: boolean;
      }

    Returns void