如何在 Unix 上使用 CVS
我对 CVS 的概念还很陌生。但是,我想开始使用 CVS,因此需要“签入”一些脚本。我正在使用 UNIX 服务器,并且我知道已安装 CVS,因为执行
cvs -v
会给我安装正确的版本号。现在我遇到的问题是寻找使用 CVS 的文档。有人可以推荐在线教程/常见问题解答吗?我在 Google 上搜索了信息,发现的都是安装 CVS 的帖子……
我真正在寻找的是让初学者从头开始的示例命令,例如登录等。
I'm quite pretty new to the concept of CVS. However, I want to start using CVS and thus need to 'check-in' some scripts. I'm using a UNIX server and I know that CVS is installed, since doing a
cvs -v
Gives me the correct version number installed. Now the problem I have in is finding documentation to use CVS. Is there an online tutorial/FAQ someone can recommend. I've scoured Google for information and all I come across are posts for installing CVS ...
What I'm really looking for our sample commands taking a beginner from scratch like Logging in etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 svn 代替,有很多相关文档。
Use svn instead, lots of documentation for that.
嗯...在 Google 上快速搜索
cvs 教程
会返回第二个结果:我快速浏览了一下,第 3 章(基本 CVS 用法)以“登录”似乎非常接近您所需要的。如果您有任何具体问题,请随时提问。
Hmmm... a quick Google search for
cvs tutorial
returns this as the second hit:I've quickly glanced over it, and Chapter 3 (Basic CVS Usage) starts with "Logging In" and seems to come pretty close to what you need. If you have any concrete questions, feel free to ask.
您的问题的元答案是不要使用 CVS,除非您参与的项目已经在使用它。据我了解,即使是 CVS 维护者也不推荐将其用于新项目,而是推荐使用 svn。如果您被迫使用它,那么这个答案没有帮助;对不起。
如果由您决定,那么您还有其他选择:
所有这些都在小型项目和大型项目中大量使用。
我现在倾向于向人们推荐 Mercurial,这也是我自己主要使用的一款。关于这一点可能存在圣战,但我认为这是在灵活性、良好设计和可用性之间具有最佳权衡的一场(这个答案有一个更长的版本......!)
更新:有非常好的 Spolsky 的 Mercurial 介绍,非常值得一读以了解基本原理和指导。
The meta-answer to your question is not to use CVS, unless you're participating in a project that's already using it. Even the CVS maintainers, as far as I understand, don't recommend it for new projects, but recommend svn instead. If you're being obliged to use it, then this answer isn't helpful; sorry.
If the decision is up to you, then you have alternatives:
All of these are heavily used in both small projects and big ones.
I now tend to recommend Mercurial to people, and that's the one I predominantly use myself. There are holy wars possible about this, but I feel that's the one which has the best tradeoff between flexibility, good design, and usability (there's a longer version of this answer...!)
Update: there's a very good Mercurial introduction by Spolsky, which is well worth reading for rationale and pointers.