Source Control for packages in MatLab 2019a
Afficher commentaires plus anciens
I have started to look at how source control and projects are integrated into MatLab 2019a. I have existing code - which I want to organize into the new project structure supported by MatLab - and also put this under git version control at the same time (not Github).
Things seem to work most easily if you create an empty remote repository, then create a project folder that is associated with it using new Project -> from git, and then add the files to the sandbox, and go from there - other approaches seem to hit all sorts of problems.
It is not clear to be how to handle packages, for example - if I create a repository for a package like <my_packages>\+abc
the 'create project' step produces the error message: 'Folder name +abc starts with an illegal character' - if you click 'ok' - then there is a spinning cursor which does not stop.
3 commentaires
per isakson
le 18 Oct 2019
Modifié(e) : per isakson
le 18 Oct 2019
I started to use "project" together with git with local repository a few months ago on R2018b.
"other approaches seem to hit all sorts of problems" agree!
However, I have had no problems with packages.
Andrew J
le 18 Oct 2019
per isakson
le 19 Oct 2019
"without thinking about the overall workflow" IMO that's supported by the blog-post Best Practices – Adapt, then Adopt! and Toolbox Tools by STAFF. From scratch, I set up
- a sandbox,
- a local repository (not GitHub)
- a project
- an Add-Ons folder
according to these two resources. ("scratch" included an old codebase.) I finally succeded.
Réponses (0)
Catégories
En savoir plus sur Source Control dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!