Interface FetchCommonOptions

FetchCommonOptions defines the supported fetch options used by commands.

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.

--negotiate-only?: null

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

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

Reports commits reachable from the given tips.

--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.

--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.

--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.

--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.