scp 一个 Mercurial 存储库
我有一个共享网络主机,我正在尝试找到一种方法将私有项目的最新副本从 bitbucket 下载到服务器上。
服务器没有安装任何版本控制工具,但是 >它确实有 scp 和 ssh 以及监狱级别的访问权限。它还有 wget 和 curl...
我可以做这样的事情吗?
scp ssh://[email protected]/jespern/testrepo ~/public_html
我在设置身份文件/DSA 密钥时没有遇到问题,但我不太确定这些协议是如何组合在一起的,因此我需要一些基本语法方面的帮助。
或者,如果 scp 不是可行的方法,那么 ssh 是否可以选择执行此操作?或者是否可以使用 CURL 或 wGet 获取最新版本的存储库,然后在服务器上重建它?
我确信有办法做到这一点,所以请不要回答说“这不可能”。
谢谢!
I have a shared web host and I am trying to figure out a way to download the latest copy of a private project from bitbucket onto the server.
The server does not have any versioning tools installed, but it does have scp and ssh with a jailshell level of access. It also has wget and curl...
Can I can do something like this?
scp ssh://[email protected]/jespern/testrepo ~/public_html
I don't have a problem setting up the identity files / DSA keys, but I'm not exactly sure how the protocols are put together here so I need some help with the basic syntax.
Or, if scp is not the way to go, does ssh have an option for doing this? or is it possible to use CURL or wGet to grab the latest version of the repository and then reconstruct it on the server?
I am sure there is a way to do this, so please don't respond saying "it can't be done."
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
请注意如何使用
tip
代替该 URL 表单中的修订 ID,以始终获取最新快照。或者,您也可以将 Mercurial 安装在共享 Web 主机上的主目录中——人们已经在几乎所有 Web 主机上成功地做到了这一点,无论它们的锁定程度如何。
然后你可以这样做:
/home/me/bin hg clone ssh:// [电子邮件受保护]/jespern/testrepo ~/public_html
You can download from bitbucket using either http with URL like this:
Notice how
tip
can be used in place of a revision ID in that URL form to always get the latest snapshot.Alternately, you can just install Mercurial in your home directory on the shared web host -- people have succeeded in doing that on almost every webhost out there no matter how locked down they are.
Then you can just do:
/home/me/bin hg clone ssh://[email protected]/jespern/testrepo ~/public_html