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和BitBucket;中止:未找到存储库默认推送&引用;错误消息_Mercurial_Bitbucket - Fatal编程技术网

Mercurial和BitBucket;中止:未找到存储库默认推送&引用;错误消息

Mercurial和BitBucket;中止:未找到存储库默认推送&引用;错误消息,mercurial,bitbucket,Mercurial,Bitbucket,我的笔记本电脑上有一些代码,我想通过Mercurial上传到我的BitBucket存储库中。 我使用的是Linux CentOS 6机器 问题是,如果我键入$hg push,我会收到以下错误消息: pushing to default-push abort: repository default-push not found! 我该怎么办 谢谢Mercurial不知道你想推到哪里。Mercurial首先在push命令中查找目标(可以是文件系统上的repo,也可以是远程hg服务器): hg推送远

我的笔记本电脑上有一些代码,我想通过Mercurial上传到我的BitBucket存储库中。 我使用的是Linux CentOS 6机器

问题是,如果我键入
$hg push
,我会收到以下错误消息:

pushing to default-push
abort: repository default-push not found!
我该怎么办


谢谢

Mercurial不知道你想推到哪里。Mercurial首先在push命令中查找目标(可以是文件系统上的repo,也可以是远程hg服务器):

hg推送远程回购

如果在命令中找不到目标,它将返回默认值

通常,假设此存储库已克隆,hgrc文件(in.hg/)将指示要使用的默认存储库

但是,这假定存储库是通过克隆现有的repo创建的

如果没有,您可以编辑.hg\hgrc并添加默认目标,例如:

[paths]
default-push=http://yourserver/