.gitignore pour STM32CubeIDE

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

IDE Eclipse pour microcontrôleurs STM32

Le .gitignore complet pour STM32CubeIDE

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 17:01:12 UTC
# Technologies: STM32CubeIDE

### STM32CubeIDE ###
# Log file
*.log
Debug/
Release/
*.elf
*.map
*.bin
# Hex dump file
*.hex
*.srec
*.lst
# Object file
*.o
*.d
# Static library
*.a
# Stack usage file
*.su
*.crl
# TouchGFX generated sources
TouchGFX/generated
TouchGFX/build
TouchGFX/simulator/msvs/.vs
# Backup file
*.bak

Ce que ces règles STM32CubeIDE ignorent vraiment

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

These are not necessary for version control.

Motif Ce qu’il ignore
*.log Log file

These are not needed in the repository as they are generated during the build process.

Motif Ce qu’il ignore
Debug/ These are not needed in the repository as they are generated during the build process.
Release/ These are not needed in the repository as they are generated during the build process.

They should not be included in the repository as they are build artifacts.

Motif Ce qu’il ignore
*.elf They should not be included in the repository as they are build artifacts.
*.map They should not be included in the repository as they are build artifacts.
*.bin They should not be included in the repository as they are build artifacts.
*.hex Hex dump file
*.srec They should not be included in the repository as they are build artifacts.
*.lst They should not be included in the repository as they are build artifacts.
*.o Object file
*.d They should not be included in the repository as they are build artifacts.
*.a Static library
*.su Stack usage file
*.crl They should not be included in the repository as they are build artifacts.

TouchGFX files (in case your project has touchGFX)

Motif Ce qu’il ignore
TouchGFX/generated TouchGFX generated sources
TouchGFX/build TouchGFX files (in case your project has touchGFX)
TouchGFX/simulator/msvs/.vs TouchGFX files (in case your project has touchGFX)

These are not needed in the repository.

Motif Ce qu’il ignore
*.bak Backup file

Comment utiliser ce .gitignore pour STM32CubeIDE

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

Voir tous les modèles IDE