2017-12-20 12:27:24 +00:00
|
|
|
# hg push
|
|
|
|
|
|
|
|
> Push changes from the local repository to a specified destination.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#push>.
|
2017-12-20 12:27:24 +00:00
|
|
|
|
|
|
|
- Push changes to the "default" remote path:
|
|
|
|
|
|
|
|
`hg push`
|
|
|
|
|
|
|
|
- Push changes to a specified remote repository:
|
|
|
|
|
|
|
|
`hg push {{path/to/destination_repository}}`
|
|
|
|
|
2017-12-20 17:43:46 +00:00
|
|
|
- Push a new branch if it does not exist (disabled by default):
|
2017-12-20 12:27:24 +00:00
|
|
|
|
|
|
|
`hg push --new-branch`
|
|
|
|
|
|
|
|
- Specify a specific revision changeset to push:
|
|
|
|
|
|
|
|
`hg push --rev {{revision}}`
|
|
|
|
|
|
|
|
- Specify a specific branch to push:
|
|
|
|
|
|
|
|
`hg push --branch {{branch}}`
|
|
|
|
|
|
|
|
- Specify a specific bookmark to push:
|
|
|
|
|
|
|
|
`hg push --bookmark {{bookmark}}`
|