是否有仅适用于一个人的准系统 Windows 版本控制系统?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/49601/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:09:45  来源:igfitidea点击:

Is there a barebones Windows version control system that's suitable for only one guy?

windowsversion-control

提问by Mike

I'm trying to find a source control for my own personal use that's as simple as possible. The main feature I need is being able to read/pull a past version of my code. I am the only developer. I've looked at a lot of different version control systems, but they all seem way more complicated than I need. I need one that's simple, runs under Windows, and doesn't expose itself to the network.

我正在尝试为我自己的个人使用找到一个尽可能简单的源代码管理。我需要的主要功能是能够读取/提取我的代码的过去版本。我是唯一的开发者。我看过很多不同的版本控制系统,但它们似乎都比我需要的复杂得多。我需要一个简单的,在 Windows 下运行的,并且不会暴露在网络中。

Specifically, the version control system should notrequire exposing an HTTP interface, it should interact with the local filesystem only. It just needs to be a version control system geared for one guy and one guy only. Graphical UI is a plus.

具体来说,版本控制系统应该要求暴露的HTTP接口,它应该只与本地文件系统交互。它只需要一个版本控制系统,只适用于一个人和一个人。图形用户界面是一个加号。

Does anyone know of software would satisfy what I'm looking for?

有没有人知道软件会满足我正在寻找的东西?

Thanks!

谢谢!

-Mike

-麦克风

回答by Ryan Lanciaux

Subversionis great -- you can run the server yourself or use something like assembla.com to host your code (although that exposes it to the network).

Subversion很棒——您可以自己运行服务器或使用诸如 assembla.com 之类的东西来托管您的代码(尽管这会将其暴露给网络)。

There are numerous gui applications like tortoise svnthat would allow you to interact w/ the source control repo

有许多 gui 应用程序,例如tortoise svn,可以让您与源代码控制存储库进行交互

回答by Erik van Brakel

From what I understand, and at the risk of sounding like a fanboy, you might want to consider a DVCS (distributed version control system) like git or mercurial. They essentially take away the central repository part, so it should be ideal to use when you're a solo developer.

据我了解,冒着听起来像个狂热分子的风险,您可能需要考虑一个 DVCS(分布式版本控制系统),如 git 或 mercurial。它们基本上带走了中央存储库部分,因此当您是单独的开发人员时使用它应该是理想的。

Another advantage is that when you decide to add people to your one-man team, you don't have to set up a central repository. All they have to do is clone your repository and they're good to go!

另一个优点是,当您决定将人员添加到您的单人团队时,您不必设置中央存储库。他们所要做的就是克隆您的存储库,他们很高兴!

If you're windows based and are used to a shell plugin like TortoiseSVN I'd pick mercurial. Their windows integration is just a bit better than git's, using TortoiseHg. The git counterpart (cheetah) is on hold at the moment, due to the developer getting sick and tired of all the demands people were making ;-)

如果您基于 Windows 并且习惯于像 TortoiseSVN 这样的 shell 插件,我会选择 mercurial。他们使用 TortoiseHg 的 Windows 集成比 git 好一点。由于开发人员厌倦了人们提出的所有要求,因此 git 对应物(猎豹)目前处于暂停状态;-)

If DVCS is too exotic for this situation you could always rely on SVN. I've heard good stories about the already mentioned VisualSVN solution. Install, make some repositories and go. Install TortoiseSVN for shell integration, or perhaps Subclipse or ankhSVN for eclipse and visual studio, respectively.

如果 DVCS 对这种情况来说太奇特了,你总是可以依靠 SVN。我听说过关于已经提到的 VisualSVN 解决方案的好故事。安装,制作一些存储库并开始。为 shell 集成安装 TortoiseSVN,或者分别为 Eclipse 和 Visual Studio 安装 Subclipse 或 ankhSVN。

Note: I have not actually tried git or mercurial in a real life project, just some test setups. I now have a simple project WITH version control (using mercurial in my case), without having to have access to a central repository.

注意:我实际上并没有在实际项目中尝试过 git 或 mercurial,只是进行了一些测试设置。我现在有一个带有版本控制的简单项目(在我的例子中使用 mercurial),而无需访问中央存储库。

回答by Chris Upchurch

Sourcegear Vaultis free for a single user and you can run both the client and the server on your own machine.

Sourcegear Vault对单个用户免费,您可以在自己的机器上运行客户端和服务器。

回答by Matt Sheppard

Subversionwith TortoiseSVN.

使用TortoiseSVN 进行颠覆

Like all version control systems, it will sound reasonably complex when you start off, but it's really very simple once you get into it, works well for a single developer, and doesn't require any network access if you don't want it to.

与所有版本控制系统一样,刚开始时听起来相当复杂,但一旦上手就非常简单,适用于单个开发人员,并且如果您不想要它,则不需要任何网络访问权限.

Plus, it's free.

另外,它是免费的。

回答by Jim Harte

For what it's worth, you can use Subversion & TortoiseSVN without a server using file:/// URLs to connect to you repository. I've done this to create repositories on USB thumb drives that I can move from machine to machine.

就其价值而言,您可以使用 Subversion 和 TortoiseSVN 而无需使用 file:/// URL 连接到您的存储库的服务器。我这样做是为了在 USB 拇指驱动器上创建存储库,我可以在机器之间移动这些存储库。

Here's a nice write-up: http://www.fredshack.com/docs/tortoisesvn.html

这是一篇不错的文章:http: //www.fredshack.com/docs/tortoisesvn.html

回答by Aardvark

I use the free (2 user?) licence of Perforce. Powerful, fast, and well documented.

我使用Perforce的免费(2 用户?)许可证。功能强大、速度快且文档齐全。

回答by David Schmitt

I'm a very satisfied user msysgitfor Windows. It contains a recent copy of git as well as a GUI, a shell and a history browser in a single install package.

我是一个非常满意的 Windows用户msysgit。它在单个安装包中包含 git 的最新副本以及 GUI、shell 和历史浏览器。

No need for a server component and if you dodecide to host it somewhere your repository is signed and cannot be modified by the hoster without you seeing it. Finally, moving the repo to a server is a easy "push" operation which keeps all of your history.

无需一个服务器组件,如果你决定的地方主持它你的版本库签,不能由主控器没有你看到它进行修改。最后,将 repo 移动到服务器是一个简单的“推送”操作,可以保留您的所有历史记录。

回答by Bmore

Bazaar. See Bazaar in five minutesfor a great start.

市场。五分钟后参观Bazaar,这是一个良好的开端。

Whenever you save a file, run the $ bzr commit -m "Added first line of text"command, and it's all taken care.

每当您保存文件时,运行该$ bzr commit -m "Added first line of text"命令,一切都会得到妥善处理。

If you edit over FTP, make the FTP folder as a drive or folder, and bzr updateafter the commit.

如果您通过 FTP 进行编辑,请将 FTP 文件夹设为驱动器或文件夹,并bzr update在提交后进行。

回答by Andrew Burns

+1 for Subversion, for those not familiar with it I would recommend the SVN Book.

+1 Subversion,对于那些不熟悉它的人,我会推荐SVN Book

回答by LaptopHeaven

VisualSVN Serveris a complete installer for Subversion Server on Windows.

VisualSVN Server是 Windows 上 Subversion Server 的完整安装程序。

VisualSVNis a Visual Studio plugin for Subversion integration.

VisualSVN是一个用于 Subversion 集成的 Visual Studio 插件。