如何在 Unix 上使用 CVS

发布于 2024-10-03 04:54:29 字数 247 浏览 2 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

待天淡蓝洁白时 2024-10-10 04:54:30

使用 svn 代替,有很多相关文档。

Use svn instead, lots of documentation for that.

空城仅有旧梦在 2024-10-10 04:54:30

嗯...在 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.

终难遇 2024-10-10 04:54:29

您的问题的元答案是不要使用 CVS,除非您参与的项目已经在使用它。据我了解,即使是 CVS 维护者也不推荐将其用于新项目,而是推荐使用 svn。如果您被迫使用它,那么这个答案没有帮助;对不起。

如果由您决定,那么您还有其他选择:

  • svn 是与 CVS 最相似的系统(正如另一个答案中所述)。
  • Mercurial 是一个分布式版本控制系统,但分布式功能并不是非常重要如果,正如你的问题隐约暗示的那样,你正在独自工作。
  • Git 与 Mercurial 的模型大致相同。
  • 还有其他的(至少包括 Bazaar 和 Darcs),但这些是三大巨头。

所有这些都在小型项目和大型项目中大量使用。

我现在倾向于向人们推荐 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:

  • svn is the system which is most similar to CVS (as noted in another answer).
  • Mercurial is a distributed version control system, but the distributed features aren't hugely important if, as your question vaguely suggests, you're working on your own.
  • Git has broadly the same model as Mercurial.
  • There are others (including at least bazaar and darcs), but those are the big three.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文