useGit API
    Preparing search index...

    Function hasUntrackedFiles

    • Check whether the working tree contains untracked files.

      Parameters

      Returns Promise<boolean>

      if (await git.hasUntrackedFiles()) {
      console.log("There are untracked files in the working tree")
      }

      0.2.0