Skip to content
ide18 active rulesVerified 2026-09-30

STM32Cube IDE .gitignore Template

Standard STM32Cube IDE gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Open in Full Generator
Search for templates
Quick add:
Selected1
STM32Cube IDE
Selected Templates (1)
.gitignore
### STM32Cube IDE ###
# STM32CubeIDE specific files
# Project-specific settings. Ignore it if developers have different preferences.
# However, if you want all team members to use the same code formatting and settings,
# consider including the .settings folder in the repository.
# /.settings/
# Ignore Eclipse-based IDE launch configurations.
# Uncomment if you want each developer to have their own unique debug configurations.
#*.launch
# Ignore any JLink-related files (debug configurations).
# Uncomment if you want each developer to have their own unique debug configurations.
#*.jlink
# Ignore log files generated by the IDE.
# These are not necessary for version control.
*.log
# Build files
# Ignore build output directories.
# These are not needed in the repository as they are generated during the build process.
Debug/
Release/
# Ignore common binary and object files generated during compilation.
# They should not be included in the repository as they are build artifacts.
*.elf
*.map
*.bin
*.hex
*.srec
*.lst
*.o
*.d
*.a
*.su
*.crl
#TouchGFX files (in case your project has touchGFX)
TouchGFX/generated
TouchGFX/build
TouchGFX/simulator/msvs/.vs
# Backup files
# Ignore temporary and backup files generated by the operating system and editor.
# These are not needed in the repository.
*.bak
18 rules1 template53 lines
Deterministic

Raw STM32Cube IDE .gitignore

Crawlable upstream source template
stm32cubeide.gitignore52 lines
# STM32CubeIDE specific files
# Project-specific settings. Ignore it if developers have different preferences.
# However, if you want all team members to use the same code formatting and settings,
# consider including the .settings folder in the repository.
# /.settings/
# Ignore Eclipse-based IDE launch configurations.
# Uncomment if you want each developer to have their own unique debug configurations.
#*.launch
# Ignore any JLink-related files (debug configurations).
# Uncomment if you want each developer to have their own unique debug configurations.
#*.jlink
# Ignore log files generated by the IDE.
# These are not necessary for version control.
*.log
# Build files
# Ignore build output directories.
# These are not needed in the repository as they are generated during the build process.
Debug/
Release/
# Ignore common binary and object files generated during compilation.
# They should not be included in the repository as they are build artifacts.
*.elf
*.map
*.bin
*.hex
*.srec
*.lst
*.o
*.d
*.a
*.su
*.crl
#TouchGFX files (in case your project has touchGFX)
TouchGFX/generated
TouchGFX/build
TouchGFX/simulator/msvs/.vs
# Backup files
# Ignore temporary and backup files generated by the operating system and editor.
# These are not needed in the repository.
*.bak

Key Pattern Breakdown

Build & Compilation Artifacts

Ignores compiled binaries, intermediate object files, and build output directories generated during development.

*.bin*.o*.aTouchGFX/build

Cache & Temporary Files

Ignores compiler caches, test runner coverage data, and transient temporary scratch files.

*.log

Source & Verification

License:: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.