OpenCart 用 .gitignore
OpenCart 用の除外ルール 14 件。そのままリポジトリにコピーして使えます。
電子商取引プラットフォーム
OpenCart 用 .gitignore の完全版
# LFGitignore によって生成 - https://lfgitignore.com
# 作成日:2026-10-31 22:58:59 UTC
# 技術: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
OpenCart のルールで除外されるもの
以下の各パターンと、.gitignore に含める理由を説明します。
一般的な
| パターン | 除外対象 |
|---|---|
.htaccess |
一般的な |
/config.php |
一般的な |
admin/config.php |
一般的な |
!index.html |
一般的な |
download/ |
一般的な |
image/data/ |
一般的な |
image/cache/ |
一般的な |
system/cache/ |
一般的な |
system/logs/ |
一般的な |
system/storage/ |
一般的な |
vqmod/logs/* |
vQmod ログ ファイル |
vqmod/vqcache/* |
vQmod キャッシュ ファイル |
vqmod/checked.cache |
一般的な |
vqmod/mods.cache |
一般的な |
この OpenCart 用 .gitignore の使い方
- 上の OpenCart 用ルールをコピーするか、ファイルを直接ダウンロードしてください。
- Git リポジトリのルートに .gitignore という名前のファイルを作り、ルールを貼り付けます。
- 対象のファイルがすでに追跡されている場合は、git rm -r --cached . を実行して再度コミットしてください。Git の除外ルールは未追跡のファイルにのみ適用されます。
- チーム全員で同じルールを共有できるよう、.gitignore をコミットします。