mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 09:00:58 +00:00
Update cheatsheets
This commit is contained in:
33
hg-push
Normal file
33
hg-push
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# hg push
|
||||
|
||||
> Push changes from the local repository to a specified destination.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#push>.
|
||||
|
||||
- Push changes to the "default" remote path:
|
||||
|
||||
`hg push`
|
||||
|
||||
- Push changes to a specified remote repository:
|
||||
|
||||
`hg push {{path/to/destination_repository}}`
|
||||
|
||||
- Push a new branch if it does not exist (disabled by default):
|
||||
|
||||
`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}}`
|
||||
Reference in New Issue
Block a user