Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 996
zcourts Avatar asked Feb 18 '11 15:02

zcourts


People also ask

What is project in Git?

A project is an adaptable spreadsheet that integrates with your issues and pull requests on GitHub to help you plan and track your work effectively.

Is a GitLab project the same as a repository?

In GitHub, repositories contain the Git/SVN repository, and the project assets such as issues, contribution metrics, etc. However users often refer to repos as projects interchangeably. So in GitLab, we call that container a Project. That includes the Git repository, issues, merge requests, milestones, and much more.

What is the difference between repository and branch in Git?

A repository is your whole project (directories and files) that you clone on your computer. A branch is a version of your repository, or in other words, an independent line of development. A repository can contain multiple branches, which means there are multiple versions of the repository.

What does project repository mean?

The project repository stores all versions of project files and directories. It also stores all the derived data and meta data associated with the files and directories.


2 Answers

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.

like image 93
Marc Hughes Avatar answered Sep 19 '22 09:09

Marc Hughes


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)
like image 44
Ltf4an Avatar answered Sep 20 '22 09:09

Ltf4an