Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial 如何将“hg push”配置为仅推送到当前分支?_Mercurial - Fatal编程技术网

Mercurial 如何将“hg push”配置为仅推送到当前分支?

Mercurial 如何将“hg push”配置为仅推送到当前分支?,mercurial,Mercurial,我想将Mercurial配置为仅在当前分支上推送提交,而不是所有草稿提交—就像Git在push.default设置为simple时所做的那样。我扫描了hgrc手册页面,但找不到强制执行此操作的选项。它是如何命名的?虽然已弃用,但您可以在hgrc中为命令设置默认值: [defaults] push = -r . 建议使用别名: [alias] pushcurrent = push -r . 尽管已弃用,但您可以在hgrc中为命令设置默认值: [defaults] push = -r . 建议

我想将Mercurial配置为仅在当前分支上推送提交,而不是所有草稿提交—就像Git在
push.default
设置为
simple
时所做的那样。我扫描了
hgrc
手册页面,但找不到强制执行此操作的选项。它是如何命名的?

虽然已弃用,但您可以在
hgrc
中为命令设置默认值:

[defaults]
push = -r .
建议使用别名:

[alias]
pushcurrent = push -r .

尽管已弃用,但您可以在
hgrc
中为命令设置默认值:

[defaults]
push = -r .
建议使用别名:

[alias]
pushcurrent = push -r .