.gitignore for OpenCart

14 ignore rules for OpenCart, ready to copy into your repository.

E-commerce platform

The complete .gitignore for OpenCart

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:31:33 UTC
# Technologies: 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

What these OpenCart rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

General

Pattern What it ignores
.htaccess General
/config.php General
admin/config.php General
!index.html General
download/ General
image/data/ General
image/cache/ General
system/cache/ General
system/logs/ General
system/storage/ General
vqmod/logs/* vQmod log files
vqmod/vqcache/* vQmod cache files
vqmod/checked.cache General
vqmod/mods.cache General

How to use this .gitignore for OpenCart

  1. Copy the OpenCart rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other E-commerce .gitignore templates

See every E-commerce template