IT lexicon › Programming › Bare Repository

Bare Repository

Programming På svenska → Updated: 2026-11-13

Git repository without a working directory, used as a central storage point.

A bare repository contains only Git's metadata (normally the contents of `.git`) without a working directory where you can edit files. It's designed to be a centralization point where developers push their changes, like a server. You cannot directly edit files in a bare repository. They're typically created on servers with `git init --bare` or cloned with `git clone --bare`. Many teams use bare repositories as a shared upstream for collaboration.

← Back to the lexicon