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

后端 未结 4 1208
再見小時候
再見小時候 2021-02-02 08:49

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 sta

相关标签:
4条回答
  • 2021-02-02 09:25

    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.

    0 讨论(0)
  • 2021-02-02 09: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.

    0 讨论(0)
  • 2021-02-02 09:34

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

    0 讨论(0)
  • 2021-02-02 09:39

    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)
    0 讨论(0)
提交回复
热议问题