This might sound like a stupid question. It's especially stupid since I've used SVN before and I've recently used 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
.
Does that mean you can have more than one project on a repository? If so, when would you create a new one?
A repository is a VCS term which describes when VCS is tracking a filesystem. In the scope of individual source code files, a VCS will track additions, deletions, modifications of the lines of text within that file. Popular software industry VCS options include Git, Mercurial, SVN and preforce.
Git is a Version Control System or VCS. VCS is basically software designed to record changes within one or more files over time.
To sum up the difference between git vs GitHub: git is a local VCS software that enables developers to save snapshots of their projects over time. It's generally best for individual use. GitHub is a web-based platform that incorporates git's version control features so they can be used collaboratively.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With