如何在 Mercurial 中初始化 google-code 项目

发布于 2024-08-10 13:05:54 字数 246 浏览 2 评论 0原文

我已经在谷歌代码上启动了一个基于 Mercurial 的项目。 我在 subversion 工作了一段时间,但我对在 Hg 中做什么感到困惑。

我需要以下方面的帮助:

  1. 如何初始化项目(首先在本地计算机上)(然后从本地副本到谷歌服务器)
  2. 如何从服务器获取构建副本
  3. 如何更新(合并/同步) )我的本地更改回服务器

我的项目是用 PHP 编写的,我正在使用 netbeans

I have started a Mercurial based project on google code.
I have worked in subversion for sometime, but I am confused with what to do what in Hg.

I would like help on the following:

  1. How do I initialize project (first on my local machine) (then from my local copy to google's server)
  2. How do I get my copy of a build from the server
  3. How do I update(merge/sync) my local changes back to the server

My project is in PHP and I am using netbeans

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

把时间冻结 2024-08-17 13:05:54

barkmadley 和 RC 都触及了它,但您明显错过的是您的订单在第一步中是错误的。在google上创建空的repo,将其克隆到本地,然后在本地提交并推送。不要尝试在本地创建它然后推送到谷歌。这样做的想法本质上没有错,但这不是谷歌设置的工作流程。

Both barkmadley and RC touch on it, but what you're explicitly missing is that your order is wrong in step one. Create the empty repo on google, clone it to local, and then commit locally and push. Don't try to create it locally and then push to google. There's nothing inherently wrong with the idea of doing it that way, but it's not the workflow for which google is set up.

蓝色星空 2024-08-17 13:05:54

无论如何,我写了一篇关于管理使用 Mercurial 的 Google 代码项目

For what it's worth, I wrote a blog post about Managing a Google Code project with Mercurial

舞袖。长 2024-08-17 13:05:54

以下是一些信息:

  • 对于 #1: 在 google-code 上初始化项目,然后在本地克隆存储库 (hg clone ...),将文件添加到克隆过程创建的目录中并提交(hg commit -m '您的消息',然后推送(hg Push)。
  • 对于#2:请参阅#1
  • 对于#3:更新您的本地副本(hg pull - u) 并提交您的更改 hg commit 后跟 hg push

正如 barkmadley 提到的,Hg 书值得一读

Here's some infos:

  • For #1: initialize the project on google-code, then clone the repository locally (hg clone ...), add you files to the directory created by the clone process and commit that (hg commit -m 'your message' then push (hg push).
  • For #2: see #1
  • For #3: to update you local copy (hg pull -u) and to commit your change hg commit followed by hg push

As mentioned by barkmadley, Hg Book is worth reading

浮世清欢 2024-08-17 13:05:54

Hg Book 应该有帮助。

当您创建项目时,您可以选择使用的版本控制系统。

从那里您应该能够从“下载”选项卡上的 Google 代码获取 hg clone 说明。

这将为您提供系统的初步检查。然后将您的工作复制到其中,并使用 hg Pushhg pull 在 Google 存储库之间同步。要将更改集保存到本地副本,请使用 hg commit

Hg Book should help.

when you create a project you can select the version control system used.

from there you should be able to get hg clone instructions from google code on the downloads tab.

this will give you an initial checkout of the system. Then you copy your work into it, and hg push and hg pull to sync between the google repository. To save changesets to your local copy use hg commit

最美的太阳 2024-08-17 13:05:54

尝试阅读此用户贡献的 wiki。我认为这是相当简单的。

Try reading this user contributed wiki. It is quite straigtforward I reckon.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文