LinuxCommandLibrary

dolt-fetch

download objects and refs from remote

TLDR

Fetch from remote

$ dolt fetch
copy
Fetch from specific remote
$ dolt fetch [remote]
copy
Fetch specific branch
$ dolt fetch [remote] [branch]
copy
Fetch all remotes
$ dolt fetch --all
copy

SYNOPSIS

dolt fetch [options] [remote] [refspec]

DESCRIPTION

dolt fetch downloads objects, commits, and branch references from a remote Dolt repository. It synchronizes the local repository's knowledge of the remote's state without modifying the working set or local branches.
This command updates remote-tracking branches (e.g., origin/main) to reflect the current state of the remote repository. Unlike pull, fetch does not automatically merge changes, allowing you to review remote changes before integrating them into your local branches.
The --prune option removes remote-tracking branches that no longer exist on the remote, keeping the local repository clean. Fetching from all remotes simultaneously is useful in multi-remote workflows.

PARAMETERS

--all

Fetch from all remotes.
--prune
Remove stale remote tracking branches.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community