.gitignore pour SugarCRM

15 règles d’exclusion pour SugarCRM, prêtes à copier dans votre dépôt.

Gestion de la relation client

Le .gitignore complet pour SugarCRM

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:33:03 UTC
# Technologies: SugarCRM

### SugarCRM ###
/.htaccess
/cache/*
!/cache/index.html
/custom/history/
/custom/modulebuilder/
/custom/working/
/custom/modules/*/Ext/
/custom/application/Ext/
/config.php
/config_override.php
/silentUpgrade*.php
# Log file
*.log
/upload/*
!/upload/index.html
/upload_backup/

Ce que ces règles SugarCRM ignorent vraiment

Chaque motif ci-dessous, et pourquoi il a sa place dans votre .gitignore.

Ignore custom .htaccess stuff.

Motif Ce qu’il ignore
/.htaccess Ignore custom .htaccess stuff.
/cache/* Ignore the cache directory completely. This will break the current behaviour. Which was often leading to the misuse of the repository as backup replacement. For development the cache directory can be safely ignored and therefore it is ignored.
!/cache/index.html Ignore custom .htaccess stuff.

Ignore some files and directories from the custom directory.

Motif Ce qu’il ignore
/custom/history/ Ignore some files and directories from the custom directory.
/custom/modulebuilder/ Ignore some files and directories from the custom directory.
/custom/working/ Ignore some files and directories from the custom directory.
/custom/modules/*/Ext/ Ignore some files and directories from the custom directory.
/custom/application/Ext/ Ignore some files and directories from the custom directory.

Custom configuration should also be ignored.

Motif Ce qu’il ignore
/config.php Custom configuration should also be ignored.
/config_override.php Custom configuration should also be ignored.

The silent upgrade scripts aren't needed.

Motif Ce qu’il ignore
/silentUpgrade*.php The silent upgrade scripts aren't needed.

Logs files can safely be ignored.

Motif Ce qu’il ignore
*.log Log file

Ignore the new upload directories.

Motif Ce qu’il ignore
/upload/* Ignore the new upload directories.
!/upload/index.html Ignore the new upload directories.
/upload_backup/ Ignore the new upload directories.

Comment utiliser ce .gitignore pour SugarCRM

  1. Copiez les règles SugarCRM ci-dessus, ou téléchargez directement le fichier.
  2. Créez un fichier nommé .gitignore à la racine de votre dépôt Git et collez-y les règles.
  3. Si certains de ces fichiers sont déjà suivis, lancez git rm -r --cached . puis recommitez — Git n’applique les règles d’exclusion qu’aux fichiers non suivis.
  4. Commitez le .gitignore pour que toute l’équipe partage les mêmes règles.