你能帮我开始使用版本控制系统吗?

发布于 2024-10-21 08:19:24 字数 411 浏览 7 评论 0原文

我对 VCS 的想法很陌生,我想知道这里的人是否可以帮助我有一个更好的开始。到目前为止,我阅读了有关 SVN 和 bazaar 的信息,尝试了带有 collabnet subversion Edge 的 tortoiseSVN(就在家里,使用我的电脑作为服务器,笔记本电脑作为客户端),并尝试了带有 launchpad 的 bazaar。我所说的“尝试”是指检查项目,进行一些编辑,检查如何更新..等等,只是基本的东西。我正在为我们在学校举办的编程俱乐部做这件事,所以我想我现在要问的是,根据你的经验,你认为什么更好?集市还是svn?因为我尝试的简单命令并没有显示出太大的差异,而且我读到的比较有点令人困惑。

还有一件事,你认为我应该从命令行而不是 GUI 开始吗?我在集市上使用了命令行,并没有发现它那么难,但想知道为什么每个人似乎都使用命令行?它如何提供更多控制?
提前致谢 :)

i'm new to the idea of VCSs and i was wondering if people here could help me have a better start at it. so far ive read about SVN and bazaar, tried tortoiseSVN with collabnet subversion edge, (just at home, used my pc as the server and laptop as the client), and tried bazaar with launchpad. and by tried i mean just checking out projects, editting a bit, checking how to update .. etc just the basic stuff. im doing this for a programming club we're doing at school so i guess what im asking now is, what do you think is better from ur experience? bazaar or svn? cuz the simple commands i tried don't rly show much of a difference, and the comaprisons i read were a bit confusing.

and another thing, do u think i should start with command line instead of GUIs? i used command line with bazaar, didn't find it so hard but was wondering why everone seems to use command line? how does it give more control?
Thanks in advance :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

从此见与不见 2024-10-28 08:19:25

对于小型/个人项目,使用像 Bazaar 这样的分布式版本控制系统会更容易,因为您不需要经历设置服务器的麻烦,尽管对存储库进行第二个站点备份通常是一个好主意- 我永远不想失去我所做的努力。

GUI 在功能上通常有点落后,并且不一定实现所有晦涩的命令行选项,但总的来说,它可以帮助您以更直观的方式学习主要概念 - 您可以看到所有按钮并单击它们看看会发生什么:)。所以我认为gui更适合学习。你可以尝试BzrExplorer,我觉得它非常好,尽管我更喜欢eclipse qbzr 插件 因为我已经在 IDE 中工作,幸运的是他们使用相同的对话框。

For small/personal projects it is easier to get going with a distributed version control system like Bazaar because you don't need to go through the hassle of setting up a server, although having a second site backup of your repository is generally a good idea - I never want to loose the hard work I did.

GUI's often lag a bit behind in functionality and don't necessarily implement all the obscure command-line options, but in general it helps you to learn the main concept in a more intuitive manner - you can see all the buttons and click on them to see what happens :). So I think gui's are a bit better for learning. You can try BzrExplorer which I find very nice, although I prefer the eclipse qbzr plugin because I already work in the IDE, luckily they use the same dialogs.

埖埖迣鎅 2024-10-28 08:19:25

使用您感觉最舒服的任何一个。我在个人项目和工作中使用 SVN,所以它通常是我的第一选择。如果您确实无法决定,请选择具有更好客户端的客户端(例如 TortoiseSVN 与 Bzr 客户端) - 更好的客户端很可能会使其更易于使用。

请记住,SVN 更为常见,并且有很多工具。 Bazaar 当然有它的好处,但如果您刚刚开始,那么任何一个选择都将为您提供版本控制的良好介绍。你不会做出终生的决定,如果你认为你所选择的任何东西都不适合你,你可以改变。

就 GUI 与命令行而言,再次选择您最熟悉的方式。就我个人而言,我更喜欢在命令行中使用 TortoiseSVN,因为它更难搞砸。

最终,没有正确或错误的答案,请尝试所有选项并选择您最喜欢的一个。

Use whichever you feel most comfortable with. I use SVN for personal projects, and at work so it is normally my first choice. If you really can't decide, pick the one with the nicer clients (e.g. TortoiseSVN vs the Bzr client) - a better client will most likely make it easier to use.

Bear in mind that SVN is a little more common and there are a lot of tools for it. Bazaar certainly has it's benefits, but if you are just starting out then either choice will give you a good intro to version control. You aren't making the decision for life, and you can switch if you decide that whatever you have chosen isn't right for you.

In terms of GUI vs command line, again go for what you are most comfortable with. Personally, I prefer to use TortoiseSVN to the command line as it is harder to screw things up with.

Ultimately there is no right or wrong answer, try all of your options and pick the one you like the most.

虐人心 2024-10-28 08:19:25

您的第一个停靠点是 Google。有大量可用信息来比较 VCS。

我使用过 Source Safe(糟糕)、SVN 和 Mercurial。我个人更喜欢 Mercurial,我通过 TortoiseHg 使用它。请注意,这实际上是 DVCS 而不是 VCS。我喜欢它提供的灵活性和速度。

就我个人而言,我不认为必须学习命令行的东西。我从来不需要使用它。但我不会说我永远学不会。我可以想象这些知识会有用的场景。

Your first port of call is Google. There's plenty of information available comparing VCSs.

I've used Source Safe (awful), SVN and Mercurial. My personal preference is Mercurial, which I use via TortoiseHg. Note, this is actually a DVCS rather than a VCS. I like the flexibility and speed it offers.

Personally I don't think learning the command line stuff in a must. I've never needed to use it. However I won't say that I'll never learn it. I can imagine scenarios where that knowledge would be useful.

雪花飘飘的天空 2024-10-28 08:19:25

我建议学习使用 GUI 和命令行。我遇到的一个问题是我需要检查许多存储库,这将花费大量时间使用 GUI 和对话框。幸运的是,安装了一些脚本和命令行 svn 解决了这个问题。我还注意到你不能用乌龟编写脚本,因为会出现对话框。

I would suggest learning to use both gui and command line. One problem i came across was that i nedeed to checkout many repositories which would have taken a lot of time with the gui and dialog boxes. Luckily, a little scripting and command line svn installed solved the problem. I also noticed that you can t script with tortoise as dialog boxes will appear .

诠释孤独 2024-10-28 08:19:25

我建议在学习如何使用 VCS 时使用 GUI,因为它们可以直观地理解幕后发生的事情。

关于集中式与分布式部分:只要您可以在某处放置可访问的服务器(或使用公共 SVN 托管服务),SVN 就可以。此外,当您有不可合并的文件、需要锁定-编辑-提交工作流程(不支持 DVCS)时,SVN 也是必须的。另一方面,DVCS 具有优点:

  • 非常快的信息检索(日志和注释不需要远程服务器)
  • 仅需要克隆、推送和拉取网络连接,
  • 不需要中央服务器(但需要时可以),可以连接存储库-特设

I suggest to use a GUI when learning how to use a VCS, since they make it visual understandable what is going on under the hood.

About the centralized versus distributed part: SVN is OK as long as you as you can place a reachable server somewhere (or use a public SVN hosting service). Also SVN is a must when you have unmergable files, when the lock-edit-commit workflow is needed (which non DVCS support). On the other hand DVCS have advantages:

  • very fast information retrieval (log and annotate do not require a remote server)
  • network connection only needed for clone, push and pull
  • no central server needed (but possible when wanted), the repos can be connected ad-hoc
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文