# Git Command Cheat Sheet

> အလုပ်မလုပ်မီ `git status`၊ မဖျက်မီ `git diff` ကိုကြည့်ပါ။

## နေ့စဉ်အသုံးများသော commands

| ရည်ရွယ်ချက် | Command |
|---|---|
| အခြေအနေကြည့်ရန် | `git status` |
| ပြောင်းလဲမှုကြည့်ရန် | `git diff` |
| Branch အသစ် | `git switch -c feature/name` |
| File အချို့ stage | `git add path/to/file` |
| Staged diff | `git diff --staged` |
| Commit | `git commit -m "Clear message"` |
| Remote update ရယူ | `git fetch origin` |
| Branch push | `git push -u origin branch-name` |
| History အတို | `git log --oneline --decorate -10` |

## အန္တရာယ်ကင်းသော undo

- Staging ဖြုတ်ရန်: `git restore --staged path/to/file`
- မကြာသေးမီ commit ကိုပြန်ပြင်ရန်: `git commit --amend`
- Shared history ကိုပြန်ဖျက်ရန်: `git revert <commit>`

Shared branch မှာ `reset --hard` သို့မဟုတ် force push မလုပ်မီ team နဲ့အတည်ပြုပါ။
