Optimizing reference deletions in Git

Nov 7, 2026

References, along with objects, form the backbone of Git's storage mechanism. Simply put, a reference is a named pointer to a particular object within the repository.

So how does Git store references? The files backend was the only backend for storing references until Git 2.45. The release saw the introduction of the newer and better reftable backend. The files backend is still the default reference backend as of Git 2.56.

Read about the newer reftable backend here, which will be the default in Git 3.0.

Files backend

Loose refs

The files backend creates a file for each new reference. So when you create a new branch, you have: