tldr/pages/common/hg-pull.md

32 lines
618 B
Markdown
Raw Normal View History

2017-12-19 19:22:33 +03:00
# hg pull
> Pull changes from a specified repository to the local repository.
- Pull from the `default` source path:
`hg pull`
- Update the local repository to the head of the remote:
2017-12-19 19:24:27 +03:00
`hg pull {{path/to/source/repository}}`
- Update the local repository to the head of the remote:
2017-12-19 19:22:33 +03:00
`hg pull --update`
- Pull changes even when the remote repository is unrelated:
`hg pull --force`
- Specify a specific revision changeset to pull up to:
`hg pull --rev {{revision}}`
- Specify a specific branch to pull:
`hg pull --branch {{branch}}`
- Specify a specific bookmark to pull:
`hg pull --bookmark {{bookmark}}`