git 什么是 VCS 存储库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21859358/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is a VCS repository?
提问by Shookie
This might sound like a stupid question. It's especially stupid since I've used SVN before and I've recently used git.
这听起来可能是个愚蠢的问题。这特别愚蠢,因为我之前使用过 SVN 并且最近使用了 git。
But I just noticed that I don't exactly know what a repository is.
但我只是注意到我并不完全知道存储库是什么。
The way I see it is that a repository is a kind of container to hold the project code. I'm quite certain that's the wrong way to define it.
我认为存储库是一种保存项目代码的容器。我很确定这是定义它的错误方式。
So how would you define a repository? Wikipedia says: storage location from which software packages may be retrieved and installed on a computer
.
那么如何定义存储库呢?维基百科说:storage location from which software packages may be retrieved and installed on a computer
。
Does that mean you can have more than one project on a repository? If so, when would you create a new one?
这是否意味着您可以在一个存储库上拥有多个项目?如果是这样,你什么时候创建一个新的?
回答by Matthew Hartman
The Wikipedia definition is correct. Think about a repository from which you would install Linux packages. As far as VCS, it stands for Version Control System and therefore a VCS repository is one for a Version Control System like Git.
维基百科的定义是正确的。想一想您将从中安装 Linux 软件包的存储库。就 VCS 而言,它代表版本控制系统,因此 VCS 存储库是 Git 等版本控制系统的存储库。
回答by user376507
The wikipedia definition for repository is right. The pro-git book has a very nice description about VCS. And yes, you can have more than one project in a repository.