究竟什么是源代码控制? [英] What exactly is source control?

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

问题描述

所以我使用的是 Visual Studio 2012,每当我创建一个新项目时,我总是省略添加到源代码管理"选项,主要是因为我不知道它是什么,它的目的是什么,或者如果它使用它会对我有益.

So I'm using Visual Studio 2012, and whenever I create a new project I always leave out the "Add to source control" option, mainly because I don't what it is, what it's purpose is, or if it would be beneficial to me to use it.

我正在自己开发一个相当大的库.我打算让它开源.这是源代码管理的用途吗?不幸的是,在线阅读并没有帮助我,我仍然非常困惑.顺便说一下,源代码控制和版本控制也一样吗?

I'm developing a rather large library on my own. I plan on making it open source. Is this what source control is for? Reading up online did not help me unfortunately, I'm still desperately confused. Is source control the same as version control too, by the way?

我们将不胜感激.

谢谢!

亚历克斯

推荐答案

源代码控制"是指将构成应用程序源代码的所有文件存储在(通常是在线的)存储库中的概念 - 人们可以在其中管理详细说明不同版本之间源代码的变化、管理问题、让其他人参与项目,并通常提供一个平台来协作管理项目.

"Source control" refers to the concept of storing all files that make up the source of an application in an (usually online) repository - where one can manage with fine detail exactly what has changed in the source code between versions, manage issues, involve other people with the project, and generally provide a platform to collaboratively manage a project.

该术语通常是版本控制的同义词——尽管您可以拥有一个存储库而不是明确命名版本.版本控制尤其是指使用分层编号方案(1.2.4 等)标记项目的主要版本

The term is usually synonymous with version control - although you can have a repository and not explicitly name versions. Version control in particular just refers to labeling major versions of your project with a hierarchical numbering scheme (1.2.4 etc.)

有几种不同的工具可以实现不同类型的源代码控制.例如,Git 是一个源代码控制工具,它可以让您管理项目.Github 是一个网站,通常存储用 Git 管理的存储库.Mercurial 是另一个源代码控制工具.

There are several different tools that implement different kinds of source control. For example, Git is a source control tool that sets lets you manage a project. Github is a web-site that repositories managed with Git are usually stored on. Mercurial is yet another source control tool.

通常,源代码控制可能很难理解,并且通常需要大量时间学习教程.很多概念对于只从事过小项目的独立程序员来说是陌生的.对源代码的更改通过提交进行管理,并且项目的不同分支可以由多人处理.来自不同分支的更改可以合并,并且项目可以完全由另一个用户分叉(至少对于 Git 而言).

Typically, source control can be complicated to understand, and usually requires significant time studying tutorials. A lot of concepts are unfamiliar to solo programmers who have only worked on small projects. Changes to source code are managed through commits, and different branches of the project can be worked on by multiple people. Changes from separate branches can be merged, and the project can be forked by another user entirely (at least for Git).

让你的库开源是一个好主意,而且在 github 上给它一个家并不难.我会查看一些资源以了解如何设置它.

Making your library open source is a good idea, and it's not too hard to give it a home on github. I would look into some resources to find out how to set it up.

这篇关于究竟什么是源代码控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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