Function fetch

  • Fetch commits from a remote repository.

    Returns

    Resolves successfully when fetch completes.

    Example

    const result = await fetch({
    fs,
    http,
    dir: '/tutorial',
    url: 'https://github.com/NotesHubApp/git-essentials',
    ref: 'main',
    depth: 1,
    singleBranch: true,
    tags: false
    })
    console.log(result)

    Parameters

    Returns Promise<FetchResult>

Generated using TypeDoc