What is a Git bare repository and when should one be used?

Git Hard

Git — Hard

What is a Git bare repository and when should one be used?

Key points

  • A bare repository lacks a working tree, distinguishing it from standard repositories.
  • Its primary use is as a central hub for version control on servers.
  • Direct file editing is not necessary in a bare repository.
  • The presence of Git objects and references enables push/pull/clone operations.

Ready to go further?

Related questions