Skip to content
devops17 active rulesVerified 2026-09-30

MATLAB .gitignore Template

Standard MATLAB 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

Preconfigured with MATLAB
Search for templates
Quick add:
Selected1
MATLAB
Selected Templates (1)
.gitignore
17 rules
### MATLAB ###
# Autosave files
*.asv
*.m~
*.autosave
*.slx.r*
*.mdl.r*
*.bak
# Derived content-obscured files
*.p
# Compiled MEX files
*.mex*
# Packaged app and toolbox files
*.mlappinstall
*.mltbx
# Deployable archives
*.ctf
# Generated helpsearch folders
helpsearch*/
# Code generation folders
slprj/
sccprj/
codegen/
# Cache files
*.slxc
# Cloud based storage dotfile
.MATLABDriveTag
36 lines•UTF-8
Deterministic

Raw MATLAB .gitignore

Crawlable upstream source template
matlab.gitignore•35 lines•UTF-8
# Autosave files
*.asv
*.m~
*.autosave
*.slx.r*
*.mdl.r*
*.bak
# Derived content-obscured files
*.p
# Compiled MEX files
*.mex*
# Packaged app and toolbox files
*.mlappinstall
*.mltbx
# Deployable archives
*.ctf
# Generated helpsearch folders
helpsearch*/
# Code generation folders
slprj/
sccprj/
codegen/
# Cache files
*.slxc
# Cloud based storage dotfile
.MATLABDriveTag

Key Pattern Breakdown

Build Outputs & Compiled Artifacts

Generated binary files, compilation targets, and distribution bundles that can be reliably reproduced from source.

*.asv*.autosave

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.