Function commit

  • Create a new commit.

    Returns

    Resolves successfully with the SHA-1 object id of the newly created commit.

    Example

    const sha = await commit({
    fs,
    dir: '/tutorial',
    author: {
    name: 'Mr. Test',
    email: 'mrtest@example.com',
    },
    message: 'Added the a.txt file'
    })
    console.log(sha)

    Parameters

    Returns Promise<string>

Generated using TypeDoc