.gitignore pour Delphi

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

Environnement de développement Object Pascal

Le .gitignore complet pour Delphi

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:28:53 UTC
# Technologies: Delphi

### Delphi ###
# Windows executable
*.exe
# Dynamic link library
*.dll
*.bpl
*.bpi
*.dcp
# Shared object
*.so
# Android package
*.apk
*.drc
*.map
*.dres
*.rsm
*.tds
*.dcu
# Library file
*.lib
# Static library
*.a
# Object file
*.o
*.ocx
*.cfg
*.hpp
*Resource.rc
*.local
*.identcache
*.projdata
*.tvsconfig
*.dsk
*.dsv
__history/
__recovery/
*.~*
*.stat
modules/

Ce que ces règles Delphi ignorent vraiment

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

Delphi compiler-generated binaries (safe to delete)

Motif Ce qu’il ignore
*.exe Windows executable
*.dll Dynamic link library
*.bpl Delphi compiler-generated binaries (safe to delete)
*.bpi Delphi compiler-generated binaries (safe to delete)
*.dcp Delphi compiler-generated binaries (safe to delete)
*.so Shared object
*.apk Android package
*.drc Delphi compiler-generated binaries (safe to delete)
*.map Delphi compiler-generated binaries (safe to delete)
*.dres Delphi compiler-generated binaries (safe to delete)
*.rsm Delphi compiler-generated binaries (safe to delete)
*.tds Delphi compiler-generated binaries (safe to delete)
*.dcu Delphi compiler-generated binaries (safe to delete)
*.lib Library file
*.a Static library
*.o Object file
*.ocx Delphi compiler-generated binaries (safe to delete)

Delphi autogenerated files (duplicated info)

Motif Ce qu’il ignore
*.cfg Delphi autogenerated files (duplicated info)
*.hpp Delphi autogenerated files (duplicated info)
*Resource.rc Delphi autogenerated files (duplicated info)

Delphi local files (user-specific info)

Motif Ce qu’il ignore
*.local Delphi local files (user-specific info)
*.identcache Delphi local files (user-specific info)
*.projdata Delphi local files (user-specific info)
*.tvsconfig Delphi local files (user-specific info)
*.dsk Delphi local files (user-specific info)
*.dsv Delphi local files (user-specific info)

Delphi history and backups

Motif Ce qu’il ignore
__history/ Delphi history and backups
__recovery/ Delphi history and backups
*.~* Delphi history and backups

Castalia statistics file (since XE7 Castalia is distributed with Delphi)

Motif Ce qu’il ignore
*.stat Castalia statistics file (since XE7 Castalia is distributed with Delphi)

Boss dependency manager vendor folder https://github.com/HashLoad/boss

Motif Ce qu’il ignore
modules/ Boss dependency manager vendor folder https://github.com/HashLoad/boss

Comment utiliser ce .gitignore pour Delphi

  1. Copiez les règles Delphi 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.

Autres modèles .gitignore Language

Voir tous les modèles Language