我想在远程服务器上创建一个存储库。
我有的访问限制:
(a) (服务器的) IP地址(b)用户名/密码
我正在遵循this tutorial,并停留在第一步:“初始访问mercurial-server”
我不能理解那些"ssh connection“语法(特别是my-key)。
如何连接到远程服务器(使用ssh-agent )才能创建新的存储库。
发布于 2012-07-26 09:06:45
这也是我们一次又一次看到的问题。mercurial-server不是Mercurial的一部分。它是一个独立的第三方软件,通常不是必需的,它试图让mercurial管理变得更容易,但却没有真正成功。
从这里开始:https://www.mercurial-scm.org/wiki/PublishingRepositories/
选择你想要的访问类型,http或ssh,然后使用hgweb.cgi + apache (对于http)或nothing at all如果你只想使用ssh。
具体地说,对于任何安装了mercurial客户端的服务器( debian或ubuntu上的apt-get install mercurial和redhat、fedora或centos上的yum install mercurial ),您根本不需要任何额外的软件来通过ssh托管mercurial存储库。你可以这样做:
hg clone myLocalrepo ssh://you@thatserver/myRemoteRepo还有你在那里主持的。
https://stackoverflow.com/questions/11655101
复制相似问题