# Naming Convention for Git Branch

<table><thead><tr><th width="176">Prefix</th><th>Description</th><th>Example  Branch Name</th></tr></thead><tbody><tr><td><code>feature/</code></td><td>New feature development</td><td><code>feature/new-login-page</code>, <code>feature/payment-gateway</code></td></tr><tr><td><code>fix/</code></td><td>Bug fixes</td><td><code>fix/issue-123</code>, <code>fix/bug-in-payment-process</code></td></tr><tr><td><code>hotfix/</code></td><td>Critical fixes in production</td><td><code>hotfix/production-bug</code>, <code>hotfix/security-issue</code></td></tr><tr><td><code>docs/</code></td><td>Documentation updates or corrections</td><td><code>docs/update-installation-guide</code>, <code>docs/fix-typo-in-readme</code></td></tr><tr><td><code>refactor/</code></td><td>Code refactoring</td><td><code>refactor/restructure-auth-module</code>, <code>refactor/optimize-database-query</code></td></tr><tr><td><code>chore/</code></td><td>General tasks or chores</td><td><code>chore/update-dependencies</code>, <code>chore/cleanup-codebase</code></td></tr><tr><td><code>test/</code></td><td>Testing-related tasks or changes</td><td><code>test/add-unit-tests</code>, <code>test/fix-integration-tests</code></td></tr><tr><td><code>release/</code></td><td>Preparing for a release or deployment</td><td><code>release/version-1.0.0</code>, <code>release/prepare-for-deployment</code></td></tr><tr><td><code>experiment/</code></td><td>Experimental changes or ideas</td><td><code>experiment/new-algorithm</code>, <code>experiment/ui-ux-improvements</code></td></tr><tr><td><code>fixup/</code></td><td>Fixing mistakes or cleaning up commits</td><td><code>fixup/fix-bad-commit</code>, <code>fixup/squash-commits</code></td></tr><tr><td><code>revert/</code></td><td>Reverting changes</td><td><code>revert/revert-feature-branch</code>, <code>revert/revert-bad-commit</code></td></tr><tr><td><code>temp/</code></td><td>Temporary branches for short-term work</td><td><code>temp/debugging-session</code>, <code>temp/quick-fix</code></td></tr><tr><td><code>vendor/</code></td><td>Integrating third-party libraries or updates</td><td><code>vendor/update-library-x</code>, <code>vendor/merge-library-y</code></td></tr><tr><td><code>feature-typo/</code></td><td>Introducing a new feature with a small typo</td><td><code>feature-typo/login-page</code>, <code>feature-typo/payment-gateway</code></td></tr></tbody></table>

{% hint style="info" %}

* **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/** : ใช้สำหรับการแนะนำคุณลักษณะใหม่ที่มีการพิมพ์ผิด
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://idt-nida.gitbook.io/developer-guideline/collaboration-agreement/naming-convention/naming-convention-for-git-branch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
