in Git by
What is ‘bare repository’ in Git?

2 Answers

0 votes
by

A “bare” repository in Git contains information about the version control and no working files (no tree) and it doesn’t contain the special .git sub-directory. Instead, it contains all the contents of the .git sub-directory directly in the main directory itself, whereas the working directory consists of :

A .git subdirectory with all the Git related revision history of your repository.

A working tree, or checked out copies of your project files.

0 votes
by

A bare repository consists of the version history of your code. It is mainly used to coordinate with a distributed development and developers team. The bare repository feature is beneficial when you are working on a project from multiple computers.

Related questions

0 votes
asked Feb 7, 2021 in Git by SakshiSharma
0 votes
asked Mar 26, 2021 in Git by rajeshsharma
0 votes
asked Oct 16, 2019 in Git by rajeshsharma
...