Skip to content

A standardized and strict guide to Git commit prefixes, providing clear definitions and practical examples to enforce consistency, clarity, and discipline in professional commit messages, following conventional commit practices. PLEASE GIVE THE STARS FOR THIS REPOSITORY IF USEFUL.

Notifications You must be signed in to change notification settings

RIOKOWI/git-commit-prefixes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

PREFIXES COMMIT MESSAGE FOR GIT


ENG VERSION

FIX = Bug fix. Not adding a new feature.

git commit -m "fix: "
  • example
git commit -m "fix: resolve null user error on app startup"

FEAT = Add a new feature. Do not use this for small changes.

git commit -m "feat: "
  • example
git commit -m "feat: add push notifications using Firebase Cloud Messaging"

BUILD = Changes that affect the build system or dependencies.

git commit -m "build: "
  • example
git commit -m "build: update Gradle and Android build tools"

CHORE = Routine tasks, cleanup, no impact on features or behavior.

git commit -m "chore: "
  • example
git commit -m "chore: remove unused assets and clean up project structure"

CI = Changes to CI/CD pipelines.

git commit -m "ci: "
  • example
git commit -m "ci: add GitHub Actions workflow for Flutter testing"

DOCS = Documentation only. No logic changes.

git commit -m "docs: "
  • example
git commit -m "docs: update README with Firebase setup instructions"

STYLE = Formatting, spacing, linting, no logic changes.

git commit -m "style: "
  • example
git commit -m "style: format files and fix lint warnings"

REFACTOR = Code restructuring with no behavior change.

git commit -m "refactor: "
  • example
git commit -m "refactor: restructure authentication service for better separation of concerns"

PERF = Performance, memory, or execution optimizations.

git commit -m "perf: "
  • example
git commit -m "perf: reduce widget rebuilds on home screen"

TEST = Add or update tests.

git commit -m "test: "
  • example
git commit -m "test: add unit tests for notification service"




INDO VERSION

FIX = Perbaikan bug. Bukan nambah fitur.

git commit -m "fix: "
  • contoh
git commit -m "fix: mengatasi kesalahan pengguna null saat aplikasi dimulai"

FEAT = Nambah fitur baru. Kalau cuma ubah kecil, jangan pakai ini.

git commit -m  "feat: "
  • contoh
git commit -m  "feat: Tambahkan notifikasi push menggunakan Firebase Cloud Messaging."

BUILD = Perubahan yang ngaruh ke build system atau dependency.

git commit -m "build: "
  • contoh
git commit -m "build: Perbarui Gradle dan alat pembuatan Android."

CHORE = Pekerjaan rutin, bersih-bersih, tidak ngaruh ke fitur atau behavior.

git commit -m "chore: "
  • contoh
git commit -m "chore: menghapus aset yang tidak digunakan dan membersihkan struktur proyek"

CI = Perubahan pipeline CI/CD.

git commit -m "ci: "
  • contoh
git commit -m "ci: Tambahkan alur kerja GitHub Actions untuk pengujian Flutter."

DOCS = Dokumentasi doang. Tidak nyentuh logic.

git commit -m "docs: "
  • contoh
git commit -m "docs: Perbarui README dengan petunjuk pengaturan Firebase."

STYLE = Formatting, spasi, lint, tanpa ubah logic.

git commit -m "style: "
  • contoh
git commit -m "style: Memformat file dan memperbaiki warning"

REFACTOR = Restruktur kode, behavior tetap sama.

git commit -m "refactor: "
  • contoh
git commit -m "refactor: Merestrukturisasi layanan otentikasi untuk pemisahan tanggung jawab yang lebih baik."

PERF = Optimasi performa, memory, atau waktu eksekusi.

git commit -m "perf: "
  • contoh
git commit -m "perf: mengurangi pembaruan widget di layar beranda"

TEST = Nambah atau perbaiki test.

git commit -m "test: "
  • contoh
git commit -m "test: tambahkan unit test untuk layanan notifikasi"

About

A standardized and strict guide to Git commit prefixes, providing clear definitions and practical examples to enforce consistency, clarity, and discipline in professional commit messages, following conventional commit practices. PLEASE GIVE THE STARS FOR THIS REPOSITORY IF USEFUL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published