git project vs repository, what's the fundamental difference?

℡╲_俬逩灬. 提交于 2019-12-02 22:06:32

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.

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

  1. Git directory, .git (also known as repository)
  2. Working area/directory
  3. Staging area (the index)

Git has no such things as projects, only repositories. These projects are nothing more but a feature of Gitorious as it seems to me.

Alex

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!