Create a repository without a working tree for server or shared use.
Section: Repository Creation and Discovery
Initialize bare repository
bash
bash
git init --bare repo.gitLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Repository Creation and Discovery