.gitignore för OpenCart
14 ignoreringsregler för OpenCart, redo att kopieras till ditt repo.
E-handelsplattform
Den kompletta .gitignore-filen för OpenCart
# Genererad av LFGitignore - https://lfgitignore.com
# Skapad: 2026-10-13 16:09:05 UTC
# Tekniker: OpenCart
### OpenCart ###
.htaccess
/config.php
admin/config.php
!index.html
download/
image/data/
image/cache/
system/cache/
system/logs/
system/storage/
vqmod/logs/*
vqmod/vqcache/*
vqmod/checked.cache
vqmod/mods.cache
Vad reglerna för OpenCart faktiskt ignorerar
Alla mönster nedan och varför de hör hemma i din .gitignore.
Allmänt
| Mönster | Vad det ignorerar |
|---|---|
.htaccess |
Allmänt |
/config.php |
Allmänt |
admin/config.php |
Allmänt |
!index.html |
Allmänt |
download/ |
Allmänt |
image/data/ |
Allmänt |
image/cache/ |
Allmänt |
system/cache/ |
Allmänt |
system/logs/ |
Allmänt |
system/storage/ |
Allmänt |
vqmod/logs/* |
vQmod-loggfiler |
vqmod/vqcache/* |
vQmod-cachefiler |
vqmod/checked.cache |
Allmänt |
vqmod/mods.cache |
Allmänt |
Så använder du denna .gitignore för OpenCart
- Kopiera reglerna för OpenCart ovan eller ladda ner filen direkt.
- Skapa en fil med namnet .gitignore i roten av ditt Git-repo och klistra in reglerna.
- Om några av filerna redan spåras, kör git rm -r --cached . och gör sedan en ny commit — Git tillämpar bara ignoreringsregler på ospårade filer.
- Checka in .gitignore så att alla i teamet delar samma regler.