Opencart имеет большую файловую структуру, и далеко не все файлы и папки нуждаются в версионировании. Например: настройки базы данных, папки с кешем и логами.
Для игнорирования таких файлов и папок в GIT предусмотрен файл .gitignore.
В своей работе мы используем следующий файл .gitignore:
# config Files /config.php /admin/config.php # Backup Files /system/storage/backup/* !/system/storage/backup/index.html # System Cache Files /system/storage/cache/* !/system/storage/cache/index.html # Download Files /system/storage/download/* !/system/storage/download/index.html # Log Files /system/storage/logs/* !/system/storage/logs/index.html # Marketplace Files # /system/storage/marketplace/* # !/system/storage/marketplace/index.html # Session Files /system/storage/session/* !/system/storage/session/index.html # Upload Files /system/storage/upload/* !/system/storage/upload/index.html # If you want to ignore install file use following lines [on development mode] # /upload/install/*