0 votes
in GitHub by
What is a bare repository?

1 Answer

0 votes
by

Candidates can also come across this entry among top Git interview questions as a follow-up question. A bare repository contains information regarding version control. The bare repository does not contain any working files or the special.git sub-directory. On the contrary, the bare repository contains all information of the .git subdirectory in the main directory directly. The working directory contains the working tree, i.e., verified copies of project files and .git subdirectory with all Git related revision history for your repository. 

...