服务器和本地之间的Mercurial? [英] Mercurial between server and local?

查看:83
本文介绍了服务器和本地之间的Mercurial?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个门户开发工作正在进行中……我有时会遇到一些麻烦,例如丢失,覆盖错误的文件等.因此,我决定去Mercurial进行此开发.我对Source Control的初次体验.

I have a portal development work in process... I had some troubles time to time like losing, overwriting wrong files, etc... So I decided to go for Mercurial for this development. My first experience with Source Control.

我为此项目在服务器[bluehost]上工作,有什么办法可以将更新备份保留在本地?我是否必须将Mercurial设置为Bluehost?有什么办法可以将服务器上的更改同步到我的本地Mac?

I work on server [bluehost] for this project, is there any way to keep update backups at local? Do I have to setup Mercurial to Bluehost? any way to sync changes on server to my local mac?

推荐答案

以下是建议的配置:

  • 服务器上的Mercurial存储库.该存储库将用于网站新版本的部署(例如,使用export).
  • 与便携式计算机,台式机等上任何该存储库的克隆一样……您将在任何工作的地方.

您正在处理本地克隆(其中之一),执行提交等……对您的工作满意时,可以将更改推送到服务器上的存储库.在这里,您可以整合所做的更改,并最终推广网站的新版本(例如,在带标记的版本上).

You work on (one of) your local clone, perform commits, etc... When you're happy with your work, you push the changes to the repository on your server. There, you can integrate your changes, and eventually promote a new revision of your website (e.g. on a tagged revision).

为了保持同步,您只需要从服务器的存储库或任何本地存储库中获取最新更新(如果您愿意进行一些原型制作).

In order to keep in sync, you just have to pull the latest update from your server's repository, or any local one, if you prefer to do some prototyping.

无论如何,我强烈建议您同时阅读工作流程指南以及 HG图书.即使对于没有VCS经验的人,它们也很容易理解.

Anyway, I would strongly recommend that you read both the workflows guide as well as the HG Book. They are easy to understand even for someone unexperienced in VCS.

这篇关于服务器和本地之间的Mercurial?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆