Select a scenario to begin
สำหรับผู้เรียนภาษาไทย · For Thai Learners
📖 เข้าใจคำสั่ง Git · Understanding Git Commands
💡 รูปแบบคำสั่ง · Command Pattern
git [verb] [what]
git [คำกริยา] [สิ่งที่ต้องการทำ]
ตัวอย่าง:
• git add file.txt = เพิ่มไฟล์
• git commit -m "msg" = บันทึก
• git push origin main = ส่งขึ้น
📝 อ่านข้อความ Error · Error Messages
"fatal" = serious error (ร้ายแรง) / "warning" = be careful (คำเตือน)
อ่านข้อความหลัง error - บอกว่าผิดตรงไหน ไม่ใช่แค่ "ผิด"
🎯 Staging Area คืออะไร
Think of it as a "preparation area" before saving
เหมือน "พื้นที่เตรียมของ" ก่อนบันทึก - เลือกไฟล์ที่จะ commit
⚠️ ข้อผิดพลาดที่คนไทยมักทำ · Common Mistakes
✗ git commits → ✓ git commit (คำสั่งไม่เติม s)
✗ my file.txt → ✓ my_file.txt (ใช้ _ แทนเว้นวรรค)
✗ ลืมเครื่องหมาย " " ใน commit message → ✓ git commit -m "message"
✗ พิมพ์ชื่อไฟล์ผิด (case-sensitive) → README.md ≠ readme.md