LinuxCommandLibrary

hg-pull

fetches changesets from a remote repository into the local repository

TLDR

Pull from default remote

$ hg pull
copy
Pull and update working directory
$ hg pull -u
copy
Pull from specific source
$ hg pull [https://example.com/repo]
copy
Pull specific revision
$ hg pull -r [revision]
copy
Pull specific branch
$ hg pull -b [branch]
copy

SYNOPSIS

hg pull [options] [source]

DESCRIPTION

hg pull fetches changesets from a remote repository into the local repository. Unlike Git's pull, it does not automatically update the working directory. Use -u to update, or run hg update separately after pulling. The source defaults to the repository from which this repository was cloned.

PARAMETERS

-u, --update

Update to new branch head after pulling.
-r, --rev rev
Pull specific revision.
-b, --branch branch
Pull specific branch.
-f, --force
Pull even from unrelated repository.

SEE ALSO

hg(1), hg-update(1), hg-push(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community