为简单的网站选择版本控制系统
我们正在内部进行一些网络开发,我的目标之一就是将其置于版本控制之下。现在我主要分别关注 HG 和 Git。由于一些古怪的行为,芭莎被淘汰出局。
我最关心的一点是:
- 只能通过 FTP 访问我们的网络主机。这让我有点担心。
- 处理所有事情的人不是开发人员,所以我需要一种简单的方法来设置事情;一个好的 GUI 是必要的。
- 分布式模型很重要,因为我们的设计人员没有直接连接到我们的网络,并且暂时(如果不是永久)在拇指驱动器上交换文件。
- 我们的设计师使用的是 Mac。其他人都在 Windows 上。
我也有几个问题:
- 我知道可以从大多数系统通过 FTP 发布分支。是否可以做其他事情(恢复等)?
- 此前,Windows 上的 Git 支持非常糟糕。不过,情况似乎已经好多了。事情有可能继续顺利进展吗?
- 使用 TortoiseHG,如何移动版本化文件?通常移动它不起作用(如预期),但似乎没有“HG Move”选项。
We're bringing some of our web development in-house and one of my goals is to get it under version control. Right now I'm looking mostly towards HG and Git, respectively. Bazaar was knocked out of the running due to some flaky behavior.
The biggest points on my mind are:
- Access to our web host is FTP-only. This worries me a bit.
- The people that will be handling everything are not developers, so I need a good simple way to set things up; A good GUI is a necessity.
- A distributed model is important as our designer is not connected directly to our network and will be trading files on a thumb drive for the moment, if not permanently.
- Our designer is on a Mac. Everyone else is on Windows.
I've got a few questions as well:
- I know it's possible to publish a branch via FTP from most systems. Is it possible to do anything else (revert, etc.)?
- Git support on Windows was previously known to be horrible. It appears that things have gotten quite a bit better, though. Are things likely to keep progressing well?
- With TortoiseHG, how do you move a versioned file? Moving it normally doesn't work (as expected), but there doesn't seem to be an "HG Move" option.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这将是一个非常固执己见的答案部分。我仍然会说 Hg 有更好的 Windows 支持。从后端和技术角度来看,我确实更喜欢 Git,但前端仍然相当缺乏。没有 API 支持,与其交互的唯一方法是通过解析控制台 io。事实上,这一切都取决于个人喜好。您选择什么并不重要,与传统方法相比,它们都非常适合您。
现在,对于您的问题,
不完全确定那会怎样
工作。如果您的存储库必须是
从外部和您都可以访问
无法设置自己的服务器
为了托管它,我会使用一项服务
例如 BitBucket 或 GitHub。
BitBucket 附带一个私有的
每个免费帐户的存储库,所以
你可以把你的工作放在那里。 Mercurial 还捆绑了托管所需的工具。您实际上可以让开发人员关闭
hgserve
并且将生成一个 http 服务器供您观看。这对于 Git 来说完全可行,但需要一些配置。好多了,但仍然很漂亮
在我看来远远落后于汞。我建议您查看您希望版本控制与哪些应用程序集成,并查看它们是否支持 hg 或 git。这很可能是决定因素。
右键单击它并选择
乌龟HG...->重命名文件。
再次,我只是建议你做好功课。两者都会很好用。目前这只是个人喜好和支持的应用程序的问题。
This is going to be a very opinionated answer section. I will still say that Hg has better windows support. I do prefer Git from a back-end and technical standpoint, but the frontends are still quite lacking. There is no API support and the only way to interact with it is via parsing console io. Really, it all comes down to personal preference. It doesn't quite matter what you choose, they will both suite you wonderfully compared to traditional methods.
Now, as for your questions
not entirely sure how that would
work. If your repository must be
accessible from the outside and you
are not able to setup your own server
to host it, I would use a service
such as BitBucket or GitHub.
BitBucket comes with one private
repository for each free account, so
you could keep your work in there. Mercurial is also bundled with the tools required for hosting. You can literally have a dev fire off
hg serve
and an http server will spawn for you viewing pleasure. This is completely doable with Git, but will require some configuration.much better, but it is still pretty
far behind Hg imo. I suggest you look what applications you would like your version control to integrate with and see if they support hg or git. That may very well be the deciding factor.
right-clicking on it and selecting
TortoiseHG... -> Rename File.
Again, I simply suggest you do your homework. Both will work great. It's just a matter of personal preference and supported applications at this point.