What is a Git repository?

Experience Level: Junior
Tags: Git Source control

Answer

Git repository is a special database that contains the data of the versioned project.

It contains current version of the project together with all previous versions of the project - all files, all directories and complete history of all changes with information who did each change and when.

  • When you have access to the repository of the project, you have access to all source files and complete history of the project.
  • When you do any changes to your files and submit the changes, the Git version control system saves the changes to the repository.
Related Git job interview questions
Git for beginners
Git for beginners

Are you learning Git? Try our test we designed to help you progress faster.

Test yourself