突击Mercurial SCM(HG)12---解决repository is unrelated的问题
2015-11-03 15:37
357 查看
情景再现
我在服务器上init一个项目ProjectA,无内容。我在PC1上clone此项目,加入源代码文件commit后,push出错。
我想在PC2上调式错误,就又clone了此项目,而后新增一个文件。
一会儿push问题解决了,我也将PC2上的文件push到服务器上。
接下来,我在PC1上pull代码,出现如下提示:
$ hg pull pulling from http://localhost/repos/ProjectA/ searching for changes abort: repository is unrelated
解决方案
这也许是changeset:0冲突造成的,目前我的解决方法是在PC1上重新clone此项目,然后再新增代码,再次push。虽然粗鲁,但能够解决问题。
大家有好方案,请赐教。
相关文章推荐
- CentOS 5.4 下mercurial的安装
- tortoiseHg 网址
- TortoiseHg使用(hg mercurial repository management)
- 修正conflict
- Android游戏引擎-AndEngine(整理)
- Oracle takes control of PeopleSoft
- 知识管理-CodeBeamer
- 知识管理-Mercurial
- 分布式开发成功秘笈:十大实用技巧分享
- Fedora8上Xen源码安装
- xen-3.3.1安装
- 在lighttpd上使用fastcgi方式部署hg server[转载]
- 最近结识了python
- (Mercurial 教程) Mercurial Tutorials on-line resource
- Mercurial server 部署 服务
- Mercurial server 部署 服务
- (Mercurial 教程) Mercurial Tutorials on-line resource
- hg branch
- hg(Mercurial)使用参考
- 使用 HG 来作为代码管理工具