Universal search across Courses, Lessons, Skills, Projects, Challenges, Competitions, Jobs, Internships, and Users
•
1
2
3
4
5
6
7
8
9
10
Repositories & Staging•Lesson 1
Working Directory, Staging & Commits
Unlike simple file backups, Git is a distributed version control system. When you edit code, changes exist in your Working Directory. Using 'git add' stages changes into the Index. Running 'git commit' captures a permanent cryptographic snapshot (SHA-1/SHA-256 hash) into the repository database.
> **Key Takeaway:** Git tracks project snapshots across three areas: Working Directory, Staging Area (Index), and Commit History.
Python 3.11
•
Interactive Challenge
+50 XP
Challenge Objective
Git tracks project snapshots across three areas: Working Directory, Staging Area (Index), and Commit History.
solution.py
UTF-84 SpacesAuto-saved
cpython3.11:~/workspace
CPython 3.11.8 (WASM)
$python3 -u solution.py
Click "Compile & Run" (or press Ctrl + Enter) to compile AST, verify bytecode, and execute the solution.