What files should I add to the .gitignore when using MATLAB and Simulink?
Asked Answered
C

1

6

I would like to know what files I should add to the .gitignore file when I am using MATLAB and Simulink.

Should the files slx.original be added?

Chlorate answered 6/8, 2015 at 13:50 Comment(0)
P
20

Github has a nice gitignore repo

Specifically for Matlab projects, the template is:

##---------------------------------------------------
## Remove autosaves generated by the Matlab editor
## We have git for backups!
##---------------------------------------------------

# Windows default autosave extension
*.asv

# OSX / *nix default autosave extension
*.m~

# Compiled MEX binaries (all platforms)
*.mex*

# Simulink Code Generation
slprj/

# Session info
octave-workspace

# Simulink autosave extension
.autosave
Polemics answered 6/8, 2015 at 14:12 Comment(2)
What about files with *.autosave, *.slx.original extension?Chlorate
you could include those as well and provide a PR to the original repo if that's usual in Matlab/Simulink development, which I haven't touched in a whilePolemics

© 2022 - 2024 — McMap. All rights reserved.