ข้ามไปเนื้อหาหลัก

#git 15

รายการ Projects, Resources และ Notes ทั้งหมดที่มี tag นี้

Resources 6

guide

Deploying Static Sites — Vercel, Netlify, GitHub Pages

วิธี deploy static site ด้วย Vercel, Netlify, และ GitHub Pages — เปรียบเทียบ features, ราคา, และ workflow

อ่านเพิ่ม →

reference

Git Advanced — Rebase, Stash, Bisect, Reflog

คำสั่ง Git ขั้นสูงที่ใช้บ่อยในงานจริง: interactive rebase, stash, cherry-pick, bisect, reflog, และ fixup workflow

อ่านเพิ่ม →

reference

Git Branching Workflow — Feature Branch, Trunk-Based, GitFlow

เปรียบเทียบ branching strategy แต่ละแบบ เมื่อไหรควรใช้อะไร พร้อม command ที่ใช้บ่อย

อ่านเพิ่ม →

guide

GitHub Actions สำหรับ Static Site — CI/CD อัตโนมัติ

ตั้งค่า GitHub Actions workflow สำหรับ static site ให้รัน build check อัตโนมัติทุก push และ deploy ไปยัง Railway หรือ GitHub Pages เมื่อ merge เข้า main

อ่านเพิ่ม →

reference

Conventional Commits — เขียน Git Message อย่างเป็นระบบ

มาตรฐาน Conventional Commits ที่ทำให้ git log อ่านง่าย ทำ changelog อัตโนมัติได้ และเชื่อมกับ semantic versioning

อ่านเพิ่ม →

reference

GitHub CLI (gh) — จัดการ GitHub จาก Terminal ได้เลย

คู่มือใช้ gh CLI สำหรับ PR, Issues, Actions และ workflow automation โดยไม่ต้องเปิด browser

อ่านเพิ่ม →

Notes 9

note

git worktree แก้ปัญหา context switching ได้ดีกว่า stash

worktree ให้มีหลาย branch active พร้อมกันโดยไม่ต้อง stash หรือ commit กลางคัน

อ่านเพิ่ม →

note

git bisect หา commit ที่ทำให้เกิด bug ด้วย binary search

ไม่ต้องไล่ดูทีละ commit — git bisect ให้ mark good/bad แล้ว Git บอกเองว่า commit ไหนทำให้พัง

อ่านเพิ่ม →

note

git stash push -m ช่วยให้จำได้ว่า stash ไหนคืออะไร

stash โดยไม่ใส่ชื่อคือหายนะเมื่อมีหลาย stash — -m ช่วยได้

อ่านเพิ่ม →

note

git rebase -i — จัดเรียง รวม และแก้ commit ก่อน push

git rebase -i HEAD~N เปิด editor ให้เลือก squash, reword, drop หรือ reorder commit ก่อน push — ทำให้ history อ่านแล้วเข้าใจได้

อ่านเพิ่ม →

note

git cherry-pick — เอา commit เดียวข้าม branch โดยไม่ merge ทั้งหมด

cherry-pick เอา commit hash ที่ต้องการมาใส่ branch ปัจจุบัน — ใช้เมื่อ hotfix อยู่ใน feature branch แต่ต้องการ deploy ก่อน

อ่านเพิ่ม →