Function add

  • Add a file to the git index (aka staging area).

    Returns

    Resolves successfully once the git index has been updated.

    Example

    await fs.writeFile('/tutorial/README.md', '# TEST')
    await add({ fs, dir: '/tutorial', filepath: 'README.md' })

    Parameters

    Returns Promise<void>

Generated using TypeDoc