Interface FetchOptions

FetchOptions defines the supported options for the Git fetch command.

Hierarchy

Properties

--all?: null

Fetches all remotes.

--append?: null

Appends ref names and object names of fetched refs to the existing contents of .git/FETCH_HEAD.

--atomic?: null

Uses an atomic transaction to update local refs.

--deepen?: string | number

Specifies the number of commits from the current shallow boundary.

--depth?: string | number

Limits fetching to the specified number of commits from the tip of each remote branch history.

--force?: null

Overrides check to update the local branch.

--ipv4?: null

Uses IPv4 addresses only, ignoring IPv6 addresses.

--ipv6?: null

Uses IPv6 addresses only, ignoring IPv4 addresses.

--jobs?: string | number

Specifies the number of parallel children to be used for all forms of fetching.

--keep?: null

Keeps downloaded pack.

--multiple?: null

Allows several repository and group arguments to be specified.

--negotiate-only?: null

Prints the ancestors of the provided --negotiation-tip values.

--negotiation-tip?: string | string[]

Reports commits reachable from the given tips.

--no-recurse-submodules?: null

Disables recursive fetching of submodules.

--no-show-forced-updates?: null

Does not check if a branch is force-updated during fetch. See also --show-forced-updates.

--no-tags?: null

Disables automatic tag following.

--no-write-commit-graph?: null

Does not write a commit-graph after fetching. See also --write-commit-graph.

--prefetch?: null

Modifies the configured refspec to place all refs into the refs/prefetch/ namespace.

--progress?: null

Forces progress reports to the standard error stream.

--prune?: null

Removes any remote-tracking references that no longer exist on the remote.

--prune-tags?: null

Removes any local tags that no longer exist on the remote.

--quiet?: null

Suppresses progress reports to the standard error stream.

--recurse-submodules?: null | string

Controls if and under what conditions new commits of populated submodules should be fetched.

--recurse-submodules-default?: string

Provides a non-negative default value for the --recurse-submodules option.

--refetch?: null

Fetches all objects as a fresh clone would.

--refmap?: string | string[]

Uses the specified refspec to map the refs to remote-tracking branches.

--server-option?: string | string[]

Transmits the given strings to the server when communicating using protocol version 2.

--set-upstream?: null

Adds upstream (tracking) reference.

--shallow-exclude?: string | string[]

Deepens or shortens the history of a shallow repository to exclude commits reachable from a specified remote branch or tag.

--shallow-since?: string | Date

Deepens or shortens the history of a shallow repository to include all reachable commits after date.

--show-forced-updates?: null

Checks if a branch is force-updated during fetch. See also --no-show-forced-updates.

--submodule-prefix?: string

Prepends path to paths printed in informative messages.

--tags?: null

Fetches all tags from the remote.

--unshallow?: null

Converts a shallow repository to a complete one.

--update-head-ok?: null

Updates .git/shallow.

--update-shallow?: null

Updates .git/shallow.

--verbose?: null

Be --verbose.

--write-commit-graph?: null

Writes a commit-graph after fetching. See also --no-write-commit-graph.