1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-11 12:55:22 +02:00
tldr/pages/common/hg-pull.md

33 lines
721 B
Markdown
Raw Normal View History

2017-12-19 16:22:33 +00:00
# hg pull
> Pull changes from a specified repository to the local repository.
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#pull>.
2017-12-19 16:22:33 +00:00
- Pull from the "default" source path:
2017-12-19 16:22:33 +00:00
`hg pull`
2017-12-19 16:35:07 +00:00
- Pull from a specified source repository:
2017-12-19 16:22:33 +00:00
`hg pull {{path/to/source_repository}}`
2017-12-19 16:24:27 +00:00
- Update the local repository to the head of the remote:
`hg pull {{[-u|--update]}}`
2017-12-19 16:22:33 +00:00
- Pull changes even when the remote repository is unrelated:
`hg pull {{[-f|--force]}}`
2017-12-19 16:22:33 +00:00
- Specify a specific revision changeset to pull up to:
`hg pull {{[-r|--rev]}} {{revision}}`
2017-12-19 16:22:33 +00:00
- Specify a specific branch to pull:
`hg pull {{[-b|--branch]}} {{branch}}`
2017-12-19 16:22:33 +00:00
- Specify a specific bookmark to pull:
`hg pull {{[-B|--bookmark]}} {{bookmark}}`