.gitignore untuk Strapi
67 aturan pengabaian untuk Strapi, siap disalin ke repositori Anda.
CMS headless
.gitignore lengkap untuk Strapi
# Dibuat oleh LFGitignore - https://lfgitignore.com
# Dibuat: 2026-10-31 22:58:05 UTC
# Teknologi: Strapi
### Strapi ###
# Pengaturan folder macOS (Desktop Services Store)
.DS_Store
# Berkas resource fork macOS
.AppleDouble
# Ikon folder khusus macOS
.LSOverride
Icon
# Indeks Spotlight macOS
.Spotlight-V100
# Folder sampah macOS
.Trashes
# Berkas resource fork macOS
._*
# berkas cadangan Emacs
*~
# Cache thumbnail Windows
Thumbs.db
# Cache thumbnail lanjutan Windows
ehthumbs.db
Desktop.ini
# Tempat sampah Windows
$RECYCLE.BIN/
# Arsip cabinet Windows
*.cab
# Paket penginstal Windows
*.msi
# Modul penggabungan Windows
*.msm
# Berkas patch Windows
*.msp
# Arsip 7-Zip
*.7z
*.csv
*.dat
# Citra disk macOS
*.dmg
# berkas terkompresi Gzip
*.gz
# gambar disk ISO
*.iso
# Arsip Java
*.jar
# Arsip RAR
*.rar
# Arsip pita
*.tar
# Arsip ZIP
*.zip
*.com
# berkas kelas terkompilasi Java
*.class
# Pustaka tautan dinamis
*.dll
# Berkas eksekusi Windows
*.exe
# Berkas objek
*.o
# Berkas nilai awal acak
*.seed
# Objek bersama
*.so
# Berkas luapan swap Vim
*.swo
# Berkas swap Vim
*.swp
# Berkas swap tambahan Vim
*.swn
# Berkas swap tambahan Vim
*.swm
# Keluaran kompiler
*.out
# Berkas ID proses
*.pid
.tmp
# Berkas catatan
*.log
# Skrip SQL
*.sql
# Basis data SQLite
*.sqlite
*#
.idea
nbproject
# Pengaturan Visual Studio Code
.vscode/
# Cakupan pustaka
lib-cov
lcov.info
# Berkas ID proses
pids
logs
results
build
node_modules
.node_history
package-lock.json
**/package-lock.json
!docs/package-lock.json
*.heapsnapshot
testApp
# Direktori cakupan
coverage
cypress/screenshots
cypress/videos
dist
packages/strapi-generate-new/files/public/
.dev
front-workspace.code-workspace
Apa yang sebenarnya diabaikan oleh aturan Strapi ini
Setiap pola berikut beserta alasan untuk memasukkannya ke .gitignore.
OS X
| Pola | Yang diabaikan |
|---|---|
.DS_Store |
Pengaturan folder macOS (Desktop Services Store) |
.AppleDouble |
Berkas resource fork macOS |
.LSOverride |
Ikon folder khusus macOS |
Icon |
OS X |
.Spotlight-V100 |
Indeks Spotlight macOS |
.Trashes |
Folder sampah macOS |
._* |
Berkas resource fork macOS |
Linux
| Pola | Yang diabaikan |
|---|---|
*~ |
berkas cadangan Emacs |
Windows
| Pola | Yang diabaikan |
|---|---|
Thumbs.db |
Cache thumbnail Windows |
ehthumbs.db |
Cache thumbnail lanjutan Windows |
Desktop.ini |
Windows |
$RECYCLE.BIN/ |
Tempat sampah Windows |
*.cab |
Arsip cabinet Windows |
*.msi |
Paket penginstal Windows |
*.msm |
Modul penggabungan Windows |
*.msp |
Berkas patch Windows |
Paket
| Pola | Yang diabaikan |
|---|---|
*.7z |
Arsip 7-Zip |
*.csv |
Paket |
*.dat |
Paket |
*.dmg |
Citra disk macOS |
*.gz |
berkas terkompresi Gzip |
*.iso |
gambar disk ISO |
*.jar |
Arsip Java |
*.rar |
Arsip RAR |
*.tar |
Arsip pita |
*.zip |
Arsip ZIP |
*.com |
Paket |
*.class |
berkas kelas terkompilasi Java |
*.dll |
Pustaka tautan dinamis |
*.exe |
Berkas eksekusi Windows |
*.o |
Berkas objek |
*.seed |
Berkas nilai awal acak |
*.so |
Objek bersama |
*.swo |
Berkas luapan swap Vim |
*.swp |
Berkas swap Vim |
*.swn |
Berkas swap tambahan Vim |
*.swm |
Berkas swap tambahan Vim |
*.out |
Keluaran kompiler |
*.pid |
Berkas ID proses |
Log dan database
| Pola | Yang diabaikan |
|---|---|
.tmp |
Log dan database |
*.log |
Berkas catatan |
*.sql |
Skrip SQL |
*.sqlite |
Basis data SQLite |
Lain-lain
| Pola | Yang diabaikan |
|---|---|
*# |
Lain-lain |
.idea |
Lain-lain |
nbproject |
Lain-lain |
.vscode/ |
Pengaturan Visual Studio Code |
Node.js
| Pola | Yang diabaikan |
|---|---|
lib-cov |
Cakupan pustaka |
lcov.info |
Node.js |
pids |
Berkas ID proses |
logs |
Node.js |
results |
Node.js |
build |
Node.js |
node_modules |
Node.js |
.node_history |
Node.js |
package-lock.json |
Node.js |
**/package-lock.json |
Node.js |
!docs/package-lock.json |
Node.js |
*.heapsnapshot |
Node.js |
Pengujian
| Pola | Yang diabaikan |
|---|---|
testApp |
Pengujian |
coverage |
Direktori cakupan |
cypress/screenshots |
Pengujian |
cypress/videos |
Pengujian |
Dokumentasi
| Pola | Yang diabaikan |
|---|---|
dist |
Dokumentasi |
Build
| Pola | Yang diabaikan |
|---|---|
packages/strapi-generate-new/files/public/ |
Build |
Contoh aplikasi
| Pola | Yang diabaikan |
|---|---|
.dev |
Contoh aplikasi |
Visual Studio Code
| Pola | Yang diabaikan |
|---|---|
front-workspace.code-workspace |
Visual Studio Code |
Cara menggunakan .gitignore ini untuk Strapi
- Salin aturan Strapi di atas atau unduh langsung berkasnya.
- Buat berkas bernama .gitignore di direktori utama repositori Git Anda dan tempelkan aturannya.
- Jika sebagian berkas tersebut sudah dilacak, jalankan git rm -r --cached . lalu buat commit baru — Git hanya menerapkan aturan pengabaian pada berkas yang belum dilacak.
- Commit .gitignore agar seluruh anggota tim menggunakan aturan yang sama.