[ SRE_ARENA ]
Roadmap
System Design
SREdle
⚡ 1420 ELO
OP
☰
←
BACK TO ROADMAP
VERSION CONTROL (GIT)
Git Doesn't Track Files. It Tracks Content.
System Architecture Visualization
main
v1.0.0
develop
branch from main
feat/login
branch from dev
feat/login
commit: OAuth2
hotfix
branch from main
hotfix
commit: fix CORS
main
merge hotfix (v1.0.1)
develop
merge feat & hotfix
main
merge dev (v1.1.0)
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Phase 1: The Three Areas of Git
Phase 2: The SDLC GitFlow Model
Phase 3: The Feature Lifecycle
Phase 4: The Hotfix Emergency Flow
Phase 5: Release Tags & SemVer
Phase 6: The Deadly Mistakes
DOWNLOADING CONCEPT: PHASE 1: THE THREE AREAS OF GIT...
↳
Git has three conceptual areas.
↳
Master this, and you eliminate 90% of confusion:
↳
1.
Working Directory
— The actual files on your disk.
↳
What you see in your editor right now.
↳
2.
Staging Area (Index)
— A 'holding zone'.
↳
When you run
git add
, you're moving changes INTO the staging area.
↳
3.
Repository (.git/)
— The permanent history.
↳
When you run
git commit
, everything in the staging area is permanently recorded as an immutable snapshot.
↳
Imagine packing a box to ship.
↳
Your messy desk is the Working Directory.
↳
The staging area is the box you're carefully placing specific items into.
↳
The commit is sealing, signing, and shipping the box.
▲ LIVE INCIDENT
A developer says 'I committed secrets to the repo 3 commits ago'.
sre@arena:~/git
sre@arena
:
~
$
git log --oneline -5
▶ EXECUTE COMMAND