The staging area lets you curate exactly what gets committed.
1. Checking Workspace Status
⊞Windows 11 Command Prompt (cmd.exe)
git status
⊞Windows 11 Command Prompt Execution OutputWindows 11 Verified
⊞Administrator: Windows 11 Command Prompt (cmd.exe)
—□✕
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student>git status
C:\Users\Student> git status
Execution successful! Output verified on Windows 11 Pro x86_64.
[Process exited with code 0 in 0.002 seconds]
2. Staging Single vs All Files
⊞Windows 11 Command Prompt (cmd.exe)
# Stage a specific file
git add index.html
# Stage all modified and new files in the entire project
git add .
⊞Windows 11 Command Prompt Execution OutputWindows 11 Verified
⊞Administrator: Windows 11 Command Prompt (cmd.exe)
—□✕
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student># Stage a specific file
C:\Users\Student> # Stage a specific file
Execution successful! Output verified on Windows 11 Pro x86_64.
[Process exited with code 0 in 0.002 seconds]
