---
description: Git commit dengan proper message — stage, diff review, commit
---

# Git Commit

## Steps

1. **Check Status**
   ```
   git status
   git diff HEAD
   git log -n 3 --oneline
   ```

2. **Review Changes**
   Analyze the diff output. Summarize what changed and why.

3. **Stage Changes**
   ```
   git add -A
   ```

4. **Commit**
   Write a clear commit message following this format:
   ```
   <type>(<scope>): <short description>

   <body explaining WHY, not WHAT>
   ```
   Types: feat, fix, refactor, docs, chore, test, perf

5. **Confirm**
   Show the commit hash and summary to Ketua.
   DO NOT push unless Ketua explicitly says to push.
