useGit API
    Preparing search index...

      useGit API

      Interfaces

      AddOptions
      BranchOptions
      CloneOptions
      CommitOptions
      CreateTagOptions
      DiffOptions
      DiffStats
      InitOptions
      IsDirtyOptions
      RestoreOptions
      StatusOptions
      TagOptions

      Type Aliases

      BranchListFormat
      BranchListResult
      BranchListResultMap

      Functions

      add
      branch
      branchExists
      changedFileCount
      clone
      commit
      commitAll
      commitAmend
      commitEmpty
      commitFixup
      commitNoEdit
      commitReuseMessage
      commitSignoff
      commitWithAuthor
      copyBranch
      createAnnotatedTag
      createBranch
      createTag
      currentBranch
      deleteBranch
      deleteTag
      diff
      diffCommits
      diffFiles
      diffHead
      diffRange
      diffStaged
      diffStats
      diffStatsCommits
      diffStatsStaged
      diffStatStagedSummary
      diffStatSummary
      diffWorkingTree
      getChangedFiles
      getDefaultBranch
      getSemverTags
      getStagedFiles
      getTags
      getUntrackedFiles
      hasBinaryChanges
      hasDiff
      hasOnlyEOLChanges
      hasOnlyWhitespaceChanges
      hasStagedDiff
      hasTag
      hasUntrackedFiles
      • This method detects files that are present in the working tree but are not yet tracked by Git.
      • To get files use getUntrackedFiles.
      init
      isCleanWorkingTree
      isDirty
      isGitInstalled
      isInitialized
      isRepo
      isSemverTag
      isValidTagName
      listAllBranches
      listBranches
      listRemoteBranches
      platform
      rawVersion
      renameBranch
      resetBranchToHead
      restore
      restoreAll

      This discards all unstaged changes in the working tree, restoring files to their last staged state.

      restoreAllFromHead
      restoreAllStaged
      restoreBoth
      restoreFrom
      restoreFromHead
      restoreStaged
      restoreWorktree
      setBranchUpstream
      stagedFileCount
      status
      tag
      version