+1 for encoragment to use GIT and open source repositories.
Matlab's File Exchange, is integrated with GitHub allowing you to host your files on GitHub and the file exchange at the same time. Here are a couple MathWorks blog posts covering the basics.
- https://blogs.mathworks.com/community/2014/10/20/matlab-and-git/
- https://blogs.mathworks.com/community/2014/04/18/file-exchange-now-hosts-github/
TMW also explains the general workflow for Matlab and Simulink,
- https://www.mathworks.com/help/matlab/matlab_prog/set-up-git-source-control.html
- https://www.mathworks.com/help/simulink/ug/set-up-git-source-control.html
the process of cloning, pushing, pulling, and fetching files,
- https://www.mathworks.com/help/matlab/matlab_prog/retrieve-from-git-repository.html
- https://www.mathworks.com/help/simulink/ug/push-and-fetch-files-with-git.html
and general information on sharing Matlab and Simulink projects on GitHub
