Linux command
hg-push 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Push to default remote
hg push
Push to specific URL
hg push [url]
Push specific branch
hg push -b [branch]
Push specific revision
hg push -r [revision]
Force push
hg push -f
Push new branch
hg push --new-branch
说明
hg push sends local changesets to a remote repository. It transfers committed changes that the remote doesn't have. The command verifies the push won't create multiple heads unless forced. It supports pushing specific branches or revisions.
参数
- -b, --branch _BRANCH_
- Push specific branch.
- -r, --rev _REV_
- Push up to revision.
- -f, --force
- Force push.
- --new-branch
- Allow pushing new branches.
- -B, --bookmark _NAME_
- Push bookmark.
- --help
- Display help information.
FAQ
What is the hg-push command used for?
hg push sends local changesets to a remote repository. It transfers committed changes that the remote doesn't have. The command verifies the push won't create multiple heads unless forced. It supports pushing specific branches or revisions.
How do I run a basic hg-push example?
Run `hg push` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b, --branch _BRANCH_ do in hg-push?
Push specific branch.