我为什么要使用版本控制? [英] Why should I use version control?

查看:176
本文介绍了我为什么要使用版本控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读博客,作者说这是
$ b


代码不存在,除非它被签入版本控制系统,对你所做的每件事都使用版本控制,任何版本控制,SVN,Git,甚至是CVS,掌握它并使用它。

我从来没有使用过任何版本控制,我也没有发现它很棒。我已经搜索了它,然后看了看,但如果你愿意的话,我只需要把它放入孩子的条件。

据我现在的理解,像SVN这样的东西是用于在线存储你的代码,以供一组用户或其他开发者访问相同的代码。一旦你更新了一些代码,你可以提交新版本,SVN将保留旧代码的副本以及你更新的新代码。

这是它的基本概念还是我完全错了?



如果我是对的,那么它可能没什么用处,如果我:


  • 没有其他人在处理代码。

  • 不要计划让其他人拥有代码。

解决方案




  • 对代码进行了更改,意识到它是一个错误,想要恢复?

  • 丢失的代码或者备份太旧了?

  • 必须维护产品的多个版本?

  • 想要查看两个(或更多)版本的代码之间的区别吗?

  • 想要证明某个特定变更破坏或修复了一段代码?

  • 想要查看某些代码的历史记录吗?

  • 想要将更改提交给其他人的代码?

  • 想要分享您的代码,或者让其他人处理您的代码?

  • 想要了解您正在完成多少工作,以及在何处,何时以及由谁执行?


  • $ b

    在这些情况下,我们希望尝试新功能而不干扰工作代码,毫无疑问,其他版本控制系统应该让你的生活更轻松。



    误导朋友:文明时代的文明工具。


    I was reading a blog where the writer said this

    "Code doesn’t exist unless it’s checked into a version control system. Use version control for everything you do. Any version control, SVN, Git, even CVS, master it and use it."

    I have never used any sort of version control and I do not find it that great. I have googled it and looked at it before, but I just need it put into children's terms if you will please.

    As I understand it right now, things like SVN are for storing your code online for a group of users or other developers to have access to the same code. Once you update some code, you can submit the new version and the SVN will keep copies of old code as well as the new ones you update.

    Is this the basic idea of it or am I getting it completely wrong?

    If I am right, then it might not be much use if I:

    • Do not have other people working on the code.
    • Do not plan on letting others have the code.

    解决方案

    Have you ever:

    • Made a change to code, realised it was a mistake and wanted to revert back?
    • Lost code or had a backup that was too old?
    • Had to maintain multiple versions of a product?
    • Wanted to see the difference between two (or more) versions of your code?
    • Wanted to prove that a particular change broke or fixed a piece of code?
    • Wanted to review the history of some code?
    • Wanted to submit a change to someone else's code?
    • Wanted to share your code, or let other people work on your code?
    • Wanted to see how much work is being done, and where, when and by whom?
    • Wanted to experiment with a new feature without interfering with working code?

    In these cases, and no doubt others, a version control system should make your life easier.

    To misquote a friend: A civilised tool for a civilised age.

    这篇关于我为什么要使用版本控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆