Tsallaka zuwa abun ciki
Justice Tech School

Bare Repositories

A bare repository has no working tree and is what servers hold.

Example
git init -q --bare ../b.git
ls ../b.git | sort | head -n 3
git -C ../b.git rev-parse --is-bare-repository

Result

HEAD
branches
config
true

Exercise

Server style repo.

git init 

Quiz Test

Does a bare repo have files to edit?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.