Sequence NODE_342
Easy

Stage & Unstage Changes Correctly

Git & GitHub
Technical Specification

Modify multiple files, then stage only specific ones, unstage one file, and finally commit selectively.

Input/Output Samples
Input:git status
Output:some files staged, some not
Optimal Logic Path
git add src/index.js
git add package.json
git reset HEAD package.json
git commit -m "feat: add main entry logic"
Architectural Deep-Dive
Staging area lets you control exactly what goes into each commit, even if you changed many files.