git 项目与存储库,根本区别是什么?
我有两个项目当前使用 SVN,我正在迁移到 git,我注册了 gitorious 并且可以选择创建新项目或添加存储库。 我刚刚开始使用 git,所以我不知道有什么区别,或者更确切地说,如果我只是在一个项目下使用存储库,这意味着什么。 如果我这样做,我最终会得到 yourDomain.com/myname/repository1 和 yourDomain.com/myname/repository2
如果我选择创建两个项目,那么我最终会得到 yourDomain.com/project1 yourDomain.com/project2
除了 URL 差异之外,选择其中一个是否会有任何影响? 提前致谢
I have two projects that currently use SVN and I'm migrating to git, I signed up to gitorious
and there's the option to create a new project or add a repository.
I'm just starting out with git so I don't know what the difference is, or rather what it means if I simply use to repositories under one project.
If i do that I'll end up with theirDomain.com/myname/repository1 and theirDomain.com/myname/repository2
If I choose to create two projects then I end up with
theirDomain.com/project1
theirDomain.com/project2
Apart from the URL difference, will there be any implications in choosing one over the other?
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是一个 gitorious 的事情,而不是一个 git 的事情。每个项目可以有多个存储库。
例如,如果您有一个客户端/服务器应用程序。您可以拥有一个项目,以及一个用于客户端的存储库和一个用于其中的服务器的存储库。
That is a gitorious, not a git thing. You can have multiple repositories per project.
For instance, if you have a client/server application. You could have one project, and a repository for the client and a repo for the server inside it.
就底层 git 系统本身和宽松的术语而言,git 存储库是 .git 目录。 git 项目是包含 .git 目录的父目录;父目录也充当“工作目录”。
Git 项目的三个主要部分
With respect to the underlying git system itself and loose terms, a git repo is the .git dir. A git project is the parent dir containing the .git dir; the parent dir also serves as the 'working directory."
Three main sections of a Git project
Git 没有项目这样的东西,只有存储库。在我看来,这些项目只不过是 Gitorious 的一个功能。
Git has no such things as projects, only repositories. These projects are nothing more but a feature of Gitorious as it seems to me.
就像您使用 sourceforge、googlecode、redmine、trac 或其他任何东西一样:您有实际代码所在的存储库,然后您有一个更广泛的项目,其中包括您的存储库,但也有诸如问题跟踪器之类的东西,也许是wiki 等....
它是与您的代码相关的所有其他内容,但实际上并不是源代码。
It is just like if you use sourceforge, googlecode, redmine, trac or whatever: you have the repo where your actual code is, and then you have a broader project that includes your repo, but also has things like an issue tracker, maybe a wiki, etc....
It is all the other stuff that relates to your code, but isn't actually source code.