Git Status
Purpose
Provide a fast and safe snapshot of repository state before any git operation.
Inputs
- •optional path scope
- •optional commit count for log
Process
- •Run
git status --short --branch. - •Run
git diff --stagedandgit diff. - •Run
git log --oneline -n <N>. - •Highlight untracked files and high-risk changes.
Output Format
- •branch and tracking state
- •staged vs unstaged summary
- •untracked files
- •last commits
Quality Checks
- • Includes both staged and unstaged diffs
- • Mentions ahead/behind state
- • Notes merge/rebase conflicts if present