Different functions that might be useful
gitautocommit.m - MATLAB function that adds & commits to git the working directory. Useful for keeping track of the last-minute changes in the scripts & to avoid accidentally overwriting something.
example.gitignore & example.gitattributes - typical examples of .gitignore
and .gitattributes
for MATLAB. Useful to avoid overburdening your repository with backups & binary files.