1
Initialize repository
Build Git from scratch
2 hours
Level 1 of 3
Create the basic .git directory structure and implement git init
Objectives
Complete these objectives to finish this level
- Create .git directory with proper structure
- Initialize objects, refs, and HEAD
- Handle repository detection
Test Cases
Your implementation should pass these tests
- git init creates .git directory
- Proper directory structure created
- HEAD file initialized correctly
Hints
- 💡 .git/objects stores all Git objects
- 💡 .git/refs/heads stores branch references
- 💡 HEAD points to current branch
Challenge Progress
Level 1 of 333%