个人项目的源代码控制选项
这可能会证明 OTT 的使用水平,但是......
我正在家里使用 Visual Studio Express 处理一些个人项目。我有一台大型台式替换笔记本电脑和一台小型超便携笔记本电脑,两者都非常适合用于开发,还有一个备用 XP Home 盒子作为事实上的家庭服务器运行。
我希望能够通过某些描述的源代码控制来运行这些项目,但这些对我来说是个人项目 - 我准备投入源代码控制的工作量是有限的,而不仅仅是保持文件夹完整服务器上有日期的 zip 文件。我以前使用过 Visual SourceSafe,我知道它并不完美,但它对我来说很有效,而且对我们来说效果很好,还有 IntaSoft AllChange。
IDE 集成不是问题,因为据我所知,VS Express 无论如何都不可能实现这一点。只会有一个开发人员,即我,并且不会有大量版本在运行,因此实际上不需要对分支和合并进行大量复杂的操作。
谁能推荐一些能给我带来比设置和操作麻烦更大的好处的东西?谢谢 :-)
This may prove OTT for the level of usage it'd get, but....
I'm working on some personal projects in Visual Studio Express at home. I've got a big desktop replacement laptop and a little ultraportable, both of which have been used quite happily for development, and a spare XP Home box running as a de facto home server.
I'd like to be able to run these projects through source control of some description, but these are personal projects for me - there's a limit to just how much work I'm prepared to dedicate to the source control over just keeping a folder full of dated zips on the server. I've previously used Visual SourceSafe which I know isn't perfect but it was inflicted on me and worked well enough for us, and IntaSoft AllChange.
IDE integration isn't an issue because as I understand that isn't possible with VS Express anyway. There'll only be one developer, me, and not huge numbers of versions flying around, so lots of sophistication on branching and merging isn't really needed.
Can anyone recommend something that'll provide me benefit greater than the hassle to set up and operate? Thanks :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
Fossil 是一个小于 1 MB 的独立可执行文件!
http://www.fossil-scm.org/
设置起来很简单。但还没有那么流行。
其他功能:
Fossil is a single stand-alone executable less than 1 MB!
http://www.fossil-scm.org/
It's simple, easy to set up. However not so popular (yet).
Other features:
SVN 非常容易设置和使用。
您可以从 VisualSVN 下载服务器的安装程序
TortiseSVN 是一个 Windows 资源管理器插件,可让您检查文件的输入/输出等。您可以在此处获取它
SVN is pretty easy to set up and use.
You can download an installer for the server from VisualSVN
TortiseSVN is a Windows Explorer add-in which will let you check files in/out/etc. You can get it here
您仍然可以将 Subversion 与 TortoiseSVN 结合使用,并且只拥有一个本地 Subversion 文件存储库。这不需要设置 Subversion 服务器,而是通过文件系统在本地托管,并且仍然具有 Subversion 的所有优点。
这是一个教程
http:// vincenthomedev.wordpress.com/2007/10/15/setup-svn-local-repository-step-by-step/
You could still use Subversion with TortoiseSVN and just have a local Subversion file repository. This does not require setting up a subversion server but instead is hosted locally through the file system and still has all the benefits of subversion.
Here's a tutorial
http://vincenthomedev.wordpress.com/2007/10/15/setup-svn-local-repository-step-by-step/
Perforce (http://www.perforce.com) 也是许多公司使用的出色源代码控制包。他们有一个免费版本,可供两个用户和五个客户端完全使用。这确实是专业级的东西。
除此之外,SVN 非常流行,并且为人类已知的每个 IDE 提供了插件。 CVS 有点陈旧了。 SourceSafe 不应该在礼貌的谈话中提及:)
GIT 也变得越来越流行,尽管我个人觉得它对于小型个人项目来说有点过于严厉。
Perforce (http://www.perforce.com) is also a fantastic source control package that many companies use. They have a free version that is fully usable with two users and five clients. It's really professional-grade stuff.
Other than that, SVN is very popular and has plug-ins for every IDE known to man. CVS is getting a bit stale. SourceSafe should not be mentioned in polite conversation :)
GIT is also becoming increasingly popular, although personally I feel it is a bit too heavy-handed for small personal projects.
在我使用过的所有 VCS 中,
git
最容易理解,并且有很多好处。即使在单用户模式下它也能完美运行。虽然我很喜欢命令行,但您可以通过此链接查看和此链接查看它在 Windows 上使用的 GUI。Of all VCS that I have used,
git
was easiest to understand, and it has many benefits. It works perfectly fine even in single-user paradigm. Although I'm a fan of command line, you can take a look through this link and this link to see it used on Windows, with GUI.除了安装 Mercurial 本身之外,以下是使用 Mercurial 设置存储库所需的全部内容。
您可以在服务器上设置(空)存储库,然后从开发计算机中推送和拉取。如果您想在另一台计算机上工作,您所做的就是类似于上面的克隆:
您还可以使用 ssh 轻松克隆存储库,如下所示。
hg clone ssh://[电子邮件受保护]//home /path/to/mycode ./mycode
中提琴!
Here's all it takes to set up a repository using mercurial, aside from install mercurial itself.
You could set up your (empty) repository on your server, and then push and pull from your dev machine. If you want to work on another computer all you do is a clone similar to the one above:
you can also easily clone your repository using ssh, like this.
hg clone ssh://[email protected]//home/path/to/mycode ./mycode
Viola!
我使用 Git 供个人使用,即使它是一个“分布式”源代码控制系统,对我来说它允许在我的本地计算机上实现非常好的工作流程,并通过 github 与我的其他计算机(home x 2 等)很好地同步或直接连接到我的家庭服务器。
例如,对于个人项目,我最终会同时处理不同的功能和/或错误修复,而 git 的无痛分支/合并允许我在功能之间切换、合并回来并使所有内容组织得非常无缝。
设置也非常容易。
在工作中我们使用 SubVersion,我仍然在本地计算机上使用 git 来管理我的编码工作流程,然后提交到 svn 存储库
I use Git for my personal use, even tough it is a "Distributed" source control system, for me it has allowed for very nice workflows on my local machine and syncing with my other machines (home x 2, etc) very nicely through github or directly to my home server.
For example, for personal projects I end up working on different features and/or bug-fixes at the same time and git's painless branching/merging allows me to switch between features, merge back and keep all organized very seamlessly.
Also very easy to setup.
At work we use SubVersion, and I still use git on my local machine to manage my coding workflow and then commit to svn repo
我推荐 Mercurial,这是一个功能强大的分布式 VCS。
I'd recommend Mercurial, a powerful distributed VCS.