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

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

问题描述

我正在读一个博客,作者是这么说的

I was reading a blog where the writer said this

代码不存在,除非它被签入版本控制系统.对你所做的一切使用版本控制.任何版本控制,SVN、Git,甚至 CVS,掌握它并使用它."

我从未使用过任何类型的版本控制,我觉得它不是很好.我以前用谷歌搜索过并看过它,但如果你愿意,我只需要把它放在儿童的条款中.

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.

据我所知,像 SVN 这样的东西用于在线存储您的代码,供一组用户或其他开发人员访问相同的代码.一旦您更新了一些代码,您就可以提交新版本,SVN 将保留旧代码的副本以及您更新的新代码.

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:

  • 不要让其他人处理代码.
  • 不要打算让其他人拥有代码.

推荐答案

你有没有:

  • 对代码进行了更改,意识到这是一个错误并想要恢复?
  • 丢失代码或备份太旧?
  • 必须维护一个产品的多个版本?
  • 想要查看代码的两个(或多个)版本之间的区别吗?
  • 想要证明某个特定更改破坏或修复了一段代码?
  • 想要查看某些代码的历史记录吗?
  • 想要提交对其他人代码的更改?
  • 想要分享您的代码,还是让其他人处理您的代码?
  • 想了解正在完成多少工作,以及在何处、何时以及由谁完成?
  • 想要在不干扰工作代码的情况下试验新功能吗?

在这些情况下,毫无疑问,在其他情况下,版本控制系统应该让您的生活更轻松.

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天全站免登陆