useGit API
    Preparing search index...

    Function restoreFromHead

    • Restore files from HEAD, discarding both staged and unstaged changes.

      Parameters

      • paths: string | string[]

      Returns Promise<string>

      await git.restoreFromHead("file.txt")
      

      0.3.0