Naming Convention for Git Branch
แนวทางการตั้งชื่อสำหรับ git branch ตามข้อตกลงร่วมกัน
Prefix | Description | Example Branch Name |
---|---|---|
| New feature development |
|
| Bug fixes |
|
| Critical fixes in production |
|
| Documentation updates or corrections |
|
| Code refactoring |
|
| General tasks or chores |
|
| Testing-related tasks or changes |
|
| Preparing for a release or deployment |
|
| Experimental changes or ideas |
|
| Fixing mistakes or cleaning up commits |
|
| Reverting changes |
|
| Temporary branches for short-term work |
|
| Integrating third-party libraries or updates |
|
| Introducing a new feature with a small typo |
|
feature/ : ใช้สำหรับการพัฒนา Feature ใหม่
fix/ : ใช้สำหรับการแก้ไขบั๊ก (Bug fixes)
hotfix/ : ใช้สำหรับการแก้ไขบั๊กที่เกิดขึ้นในโปรดักชันที่กำลังใช้งาน (Critical fixes in production)
docs/ : ใช้สำหรับการอัพเดทหรือแก้ไขเอกสาร
refactor/ : ใช้สำหรับการ Refactor โค้ด
chore/ : ใช้สำหรับงานทั่วไปหรือหน้าที่ทั่วไป
test/ : ใช้สำหรับการเปลี่ยนแปลงที่เกี่ยวข้องกับการทดสอบ
release/ : ใช้สำหรับการเตรียมตัวสำหรับการเผยแพร่หรือการนำไปใช้งาน
experiment/ : ใช้สำหรับการทดลองเปลี่ยนแปลงหรือไอเดียใหม่
fixup/ : ใช้สำหรับการแก้ไขข้อผิดพลาดหรือทำความสะอาด Commits
revert/ : ใช้สำหรับการย้อนกลับการเปลี่ยนแปลง
temp/ : ใช้สำหรับ Branch ชั่วคราวสำหรับงานชั่วคราว
vendor/ : ใช้สำหรับการรวมไลบรารีหรืออัปเดตไลบรารีจากแหล่งภายนอก
feature-typo/ : ใช้สำหรับการแนะนำคุณลักษณะใหม่ที่มีการพิมพ์ผิด
Last updated