Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "git"

Index

Functions

getCurrentGitBranch

  • Gets the current git branch.

    Parameters

    Returns string

    The name of the current branch.

getGitBranches

  • Lists all branches of a git repository.

    Parameters

    Returns string[]

    The list of branches.

getGitRemoteUrl

  • Tries to return the remote URL of a git repository.

    Parameters

    Returns string | false

    The remote URL or (false) if not possible.

getGitRemotes

  • Lists all remotes of a git repository.

    Parameters

    Returns string[]

    The list of remotes.

hasGitChanges

  • Checks if a git repository has uncommited changes or not.

    Parameters

    Returns boolean

    Has uncomitted changes or not.

Generated using TypeDoc