简体   繁体   English

为简单的网站选择版本控制系统

[英]Choosing a version control system for a simple web site

We're bringing some of our web development in-house and one of my goals is to get it under version control. 我们正在内部进行一些Web开发,而我的目标之一就是将其置于版本控制之下。 Right now I'm looking mostly towards HG and Git, respectively. 现在,我分别主要关注HG和Git。 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. 只能通过FTP访问我们的Web主机。 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. 良好的GUI是必需的。
  • 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. 我们的设计师在Mac上。 Everyone else is on Windows. 其他所有人都在Windows上。

I've got a few questions as well: 我也有几个问题:

  • I know it's possible to publish a branch via FTP from most systems. 我知道可以从大多数系统通过FTP发布分支。 Is it possible to do anything else (revert, etc.)? 是否可以做其他任何事情(还原等)?
  • Git support on Windows was previously known to be horrible. Windows上对Git的支持以前被认为是可怕的。 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? 使用TortoiseHG,如何移动版本文件? Moving it normally doesn't work (as expected), but there doesn't seem to be an "HG Move" option. 移动它通常不起作用(按预期方式),但是似乎没有“ HG移动”选项。

This is going to be a very opinionated answer section. 这将是一个很自以为是的答案部分。 I will still say that Hg has better windows support. 我仍然会说Hg具有更好的Windows支持。 I do prefer Git from a back-end and technical standpoint, but the frontends are still quite lacking. 从后端和技术角度来看,我确实更喜欢Git,但是仍然缺少前端。 There is no API support and the only way to interact with it is via parsing console io. 没有API支持,并且与之交互的唯一方法是通过解析控制台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 现在,关于你的问题

  • With regards to FTP-only hosting, I'm not entirely sure how that would work. 关于仅FTP托管,我不完全确定这将如何工作。 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或GitHub之类的服务。 BitBucket comes with one private repository for each free account, so you could keep your work in there. BitBucket为每个免费帐户提供一个私有存储库,因此您可以将工作保存在其中。 Mercurial is also bundled with the tools required for hosting. Mercurial还与托管所需的工具捆绑在一起。 You can literally have a dev fire off hg serve and an http server will spawn for you viewing pleasure. 从字面上看,您可以关闭hg serve然后会生成一个http服务器,以供您欣赏乐趣。 This is completely doable with Git, but will require some configuration. 这对于Git完全可行,但是需要一些配置。
  • Git support on windows HAS gotten much better, but it is still pretty far behind Hg imo. Windows上对Git的支持已经改善了很多,但仍然远远落后于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. 我建议您查看希望将其版本控制与哪些应用程序集成,并查看它们是否支持hg或git。 That may very well be the deciding factor. 这很可能是决定因素。
  • With TortoiseHG you rename a file by right-clicking on it and selecting TortoiseHG... -> Rename File. 使用TortoiseHG,可以通过右键单击文件并选择TortoiseHG ...->重命名文件来重命名文件。

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. 这只是个人喜好和支持的应用程序的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM