Options
All
  • Public
  • Public/Protected
  • All
Menu

External module utils/git

Git commands using the Git CLI.

This module provides some Git commands by wrapping the CLI. It runs the commands by generating the CLI options and spawning a sub-process.

Index

Functions

assertCleanBranch

  • assertCleanBranch(allowedBranches: string[]): Promise<void>

execGit

getHeadHash

  • getHeadHash(): Promise<string>
  • Get the hash of the HEAD commit.

    Returns Promise<string>

    The hash of the HEAD commit.

gitAdd

gitClone

gitCommit

gitPush

tagExists

  • tagExists(tag: string): Promise<boolean>

Generated using TypeDoc